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 Risposte
2
Risposta accettata

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
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato un mese fa
profile picture
ESPERTO
verificato un mese fa
  • 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
ESPERTO
con risposta 2 mesi fa
profile pictureAWS
ESPERTO
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande