1 Answer
- Newest
- Most votes
- Most comments
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
Relevant content
- Accepted Answerasked 4 months ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago