Ir para o conteúdo

Running bash script in Member accounts

0

How to run bashscript in all the member accounts and whenever they join using stacksets

feita há 2 anos516 visualizações

1 Resposta
1

Hello.

Do you want to run your Bash script inside an EC2 instance?
If you want to run it within EC2, I think you can use something like Systems Manager's RunCommand.
I think it is possible if you configure EventBridge and Lambda to execute RunCommand when "CreateStack" is executed within a member account.
Alternatively, I think it is possible to create a custom CloudFormation resource and execute RunCommand when the stack is created.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources-lambda.html

ESPECIALISTA

respondido há 2 anos

ESPECIALISTA

avaliado há 2 anos

ESPECIALISTA

avaliado há 2 anos

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.