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 Respostas
2
Resposta aceita

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
ESPECIALISTA
respondido há um mês
profile picture
ESPECIALISTA
avaliado há 5 dias
profile picture
ESPECIALISTA
avaliado há 9 dias
  • 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
ESPECIALISTA
respondido há um mês
profile pictureAWS
ESPECIALISTA
avaliado há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas