Hóa ra bạn cần phải chọn hộp trên màn hình cuối cùng của quá trình tạo ngăn xếp | Cập nhật:
Trong CodePipeline CloudFormation bạn có thể thêm nó như thế này để cho phép thực hiện các change_set tạo ra trong hành động triển khai:
Configuration:
StackName: !Ref GitHubRepository
ActionMode: CHANGE_SET_REPLACE
Capabilities: CAPABILITY_NAMED_IAM
RoleArn: arn:aws:iam::818272543125:role/events-list-codepiplinerole
ChangeSetName: !Join ["",[!Ref GitHubRepository, "-changeset"]]
TemplatePath: MyAppBuild::sam_post.yaml
Trong AWS cli thêm
--capabilities CAPABILITY_IAM
hoặc
--capabilities CAPABILITY_NAMED_IAM
Để lệnh của bạn như thế này:
aws cloudformation create-stack --stack-name message-store --template-body file://bucket_with_keys.yaml --parameters file://cfg_bucket_with_keys.json --capabilities CAPABILITY_NAMED_IAM
này không áp dụng cho cloudformation --validate-mẫu vì nó không thực sự tạo ra các nguồn lực.
Nguồn
2016-12-20 15:45:12
Đó là một câu trả lời đúng, cảm ơn bạn. –