Packaging my main CloudFormation template contains a nested stack that itself contains another nested stack and Stackset

0

Hello

How do i package my main CloudFormation template contains a nested stack that itself contains another nested stack and Stackset using AWS CLI

This what am using it does not work for the nested stack that itself contains another nested stack and Stackset

- aws cloudformation package --template template.yaml --s3-bucket $S3_BUCKET --output-template-file template-export.yaml
Nafiu
已提問 2 個月前檢視次數 236 次
2 個答案
2
已接受的答案

Hi,

I would suggest to solve this incrementally: do you have a working template for a stack containing a stackset deployed in multiple regions? This is working: I have such a thing live in my account. When you get this to work, you can try to get the second level of embedding working.

Best,

Didier

profile pictureAWS
專家
已回答 2 個月前
profile picture
專家
已審閱 22 天前
profile picture
專家
已審閱 1 個月前
  • Hi Nafiu, thanks for accepting my answer.

1

Hello.

According to the GitHub issue below, stack sets may not be supported by the "aws cloudformation package" command yet.
https://github.com/aws/aws-cli/issues/5590
https://github.com/aws/aws-cli/pull/5591

There was information that it could be avoided by using SAM CLI.
https://github.com/aws/aws-cli/pull/5591#issuecomment-1488118599

It appears that you can also work around the issue by using Rain, a command-line tool for working with CloudFormation templates and stacks.
https://github.com/aws/aws-cli/issues/5590#issuecomment-1674966795

profile picture
專家
已回答 2 個月前
profile pictureAWS
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南