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 Answers
2
Accepted Answer

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
EXPERT
answered a month ago
profile picture
EXPERT
reviewed 11 days ago
profile picture
EXPERT
reviewed 14 days ago
  • 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
EXPERT
answered a month ago
profile pictureAWS
EXPERT
reviewed a month 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