跳至内容

Running bash script in Member accounts

0

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

1 回答
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

专家

已回答 2 年前

专家

已审核 2 年前

专家

已审核 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。