Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

When attempting to update a cloudformation stack in the aws cli:

aws --profile dev cloudformation update-stack --stack-name mystackname --template-body file://events-list.yaml

I get the following error

An error occurred (ValidationError) when calling the UpdateStack operation: UpdateStack cannot be used with templates containing Transforms.

Because I am using the AWS Serverless transform for lambda function deployments 

Transform: 'AWS::Serverless-2016-10-31'

Is there a CLI way to execute this stack update or am I going to have to work on my APM in the GUI?

1 Answer

0 votes
by (44.4k points)

Use deploy instead of update-stack:

aws cloudformation deploy \

   --template-file serverless-output.yaml \

   --stack-name new-stack-name \

   --capabilities CAPABILITY_IAM

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...