如何在 AWS Cloudformation 中使用 create-change-set 创建新堆栈
How to create new stack using create-change-set in AWS Cloudformation
我能够在现有 AWS 堆栈上使用变更集。我读了这个doc,似乎也可以为新堆栈创建一个更改集。
现在我尝试使用 CLI 来完成它:
aws cloudformation create-change-set --change-set-name ChangeSet-82 --stack-name test-bucket-xx --region eu-west-1 --template-body file://xxx
这returns一个错误:
An error occurred (ValidationError) when calling the CreateChangeSet operation: Stack [test-bucket-xx] does not exist.
我在这里错过了什么?
更改集操作的类型。要为新堆栈创建更改集,请指定 CREATE。要为现有堆栈创建更改集,请指定更新。
--change-set-type CREATE
To create a change set for a stack that doesn't exist, for the
change-set-type parameter, specify CREATE . To create a change set for
an existing stack, specify UPDATE for the change-set-type parameter.
After the create-change-set call successfully completes, AWS
CloudFormation starts creating the change set. To check the status of
the change set or to review it, use the describe-change-set action.
我能够在现有 AWS 堆栈上使用变更集。我读了这个doc,似乎也可以为新堆栈创建一个更改集。
现在我尝试使用 CLI 来完成它:
aws cloudformation create-change-set --change-set-name ChangeSet-82 --stack-name test-bucket-xx --region eu-west-1 --template-body file://xxx
这returns一个错误:
An error occurred (ValidationError) when calling the CreateChangeSet operation: Stack [test-bucket-xx] does not exist.
我在这里错过了什么?
更改集操作的类型。要为新堆栈创建更改集,请指定 CREATE。要为现有堆栈创建更改集,请指定更新。
--change-set-type CREATE
To create a change set for a stack that doesn't exist, for the change-set-type parameter, specify CREATE . To create a change set for an existing stack, specify UPDATE for the change-set-type parameter. After the create-change-set call successfully completes, AWS CloudFormation starts creating the change set. To check the status of the change set or to review it, use the describe-change-set action.