0 votes
1 view
in AWS by (19.2k 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.6k points)

Use deploy instead of update-stack:

aws cloudformation deploy \

   --template-file serverless-output.yaml \

   --stack-name new-stack-name \

   --capabilities CAPABILITY_IAM

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...