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
2 Antworten
2
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat
  • 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
EXPERTE
beantwortet vor 2 Monaten
profile pictureAWS
EXPERTE
überprüft vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen