System Manager Automation

0

Hi,

I would like to pass events from ASG to Amazon Event Bridge and then System Manager Automation.

Amazon event bridge will receive Ec2 instance , how do I pass Ec2 instance name to System Manager Automation.

In System Automation , I would like to create a folder in Ec2 isnatnce.

Could you please provide the required coding in Event bridge and System Automation manager to achieve the same.

Regards Chetan

Chetan
asked 2 months ago122 views
1 Answer
0

Hello.

How about running Lambda from SNS using AutoScaling event notification?
https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-sns-notifications.html

I thought it would be easy to implement since you can get the instance ID etc. from the event by executing "send_command" from Lambda.
https://medium.com/@kamal.maiti/how-can-aws-lambda-remotely-execute-any-command-on-an-ec2-machine-c07d628c1a1f

profile picture
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions