CloudFormation Nested Stack From Codecommit in a CodePipeline

0

How to implement Nested Stack files in one CodeCommit repository and use CodeDeploy in CodePipeline for deployment,

CodeCommit FileStructure Storage-Stack.yaml Backend-Stack.yaml Parent-Stack.yaml

how do we include the URL of the File from the Source Artifcat

1回答
2
承認された回答

You can use a CodePipeline Deploy stage that uses CloudFromation Stacks as the deployment provider, which should be easier than using CodeDeploy.

Before the Deploy stage, create Build stage that has a CLI command like: aws cloudformation package --template-file $TemplateName.yaml --s3-bucket $S3Bucket --s3-prefix $S3BuildsPrefix --output-template-file packaged-template.yaml

This allows your parent template to refer to nested stacks as relative paths in your source tree, and "cloudformation package" resolves these by uploading dependencies to S3 and changing references in your template to refer to them. It can deal with many types of dependencies - have a look at https://docs.aws.amazon.com/cli/latest/reference/cloudformation/package.html.

エキスパート
回答済み 9ヶ月前
profile picture
エキスパート
レビュー済み 2日前
profile picture
エキスパート
レビュー済み 2ヶ月前
  • Thank you for the Help

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ