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
• 14,970 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 56,120 points

Related Questions In AWS

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,240 points
0 votes
1 answer

Quick way to get AWS Account number from the cli tools?

Via "Secure Token Service" using the following ...READ MORE

answered Jul 12, 2018 in AWS by Priyaj
• 56,120 points
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
• 56,120 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.