Direkt zum Inhalt

Running bash script in Member accounts

0

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

1 Antwort
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

EXPERTE

beantwortet vor 2 Jahren

EXPERTE

überprüft vor 2 Jahren

EXPERTE

überprüft vor 2 Jahren

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.