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
전문가
검토됨 3일 전
profile picture
전문가
검토됨 2달 전
  • Thank you for the Help

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠