Updating Service Catalog Product Versions Through AWS CLI Boto3

0 votes

I want to automatically roll out new versions of my Service Catalog product using a Lambda that runs weekly. I can't find a corresponding Boto3/AWS CLI command to do this, however. I see there is 'update_product', but there doesn't appear to be a way to use this command specify a version number,nor do I think there is a way to remove deprecated versions without removing the product itself with 'delete_product'.

Is there a way to do this versioning from the CLI?

Aug 27, 2018 in AWS by bug_seeker
• 15,510 points
1,807 views

1 answer to this question.

0 votes
  1. Find the Product ID of the product you wish to update by using the command below, and note the value of the field named ProductId

  2. aws servicecatalog search-products-as-admin

  3. Upload the CloudFormation template to S3 and copy the URL to the template

  4. Run the following command, inserting the Version Name, Product ID and the URL for the template in S3

  5. aws servicecatalog create-provisioning-artifact --product-id INSERT_PRODUCT_ID --parameters Name=INSERT_VERSION_NAME,Info={LoadTemplateFromURL=INSERT_TEMPLATE_URL},Type=CLOUD_FORMATION_TEMPLATE
answered Aug 27, 2018 by Priyaj
• 58,020 points

Related Questions In AWS

0 votes
1 answer

Change own IAM user's password through CLI - AWS

Hey! Its pretty easy to change your ...READ MORE

answered Apr 10, 2019 in AWS by Mishra
1,997 views
0 votes
1 answer
0 votes
1 answer

Post Installation, AWS Cli Not added

From this document:  http://docs.aws.amazon.com/cli/latest/userguide/cli-install-macos.html#awscli-install-osx-path For Modern macos/OSX, you need ...READ MORE

answered Jun 5, 2018 in AWS by Cloud gunner
• 4,670 points
2,926 views
0 votes
1 answer
0 votes
1 answer
+1 vote
3 answers

How to get ARN for s3 Bucket using aws cli .

An ARN is a non-opaque, constructible identifier, ...READ MORE

answered Aug 16, 2018 in AWS by Priyaj
• 58,020 points
5,695 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP