Create change sets for nested stacks with CodePipeline native Cloudformation action

0

I have CloudFormation templates in a CodeCommit repository with CodePipeline deploying the stacks. There is a root template with many nested stacks. Whenever there's a change in the repository, I create a change set for the root template using CodePipeline's native CloudFormation action "Create or replace a change set". But the change set is created only for the root stack, not the nested stacks.

In the web console, nested stacks change sets are enabled by default. With AWS CLI, --include-nested-stacks option can be used. But I found no way to do it using the CodePipeline action, is there any?

Thanks.

1 Answer
0

Hello.

I have checked the following documents.
There was no mention of nested stacks in CodePipeline's CloudFormation action.
Therefore, nested stacks may not currently be available in CloudFormation actions.
https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CloudFormation.html

Therefore, it may be possible to create a change set using the AWS CLI in CodeBuild's buildspec.yml, or by using the method introduced in the AWS blog below.
https://aws.amazon.com/jp/blogs/devops/continuous-delivery-of-nested-aws-cloudformation-stacks-using-aws-codepipeline/

profile picture
EXPERT
answered 20 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions