k_vishwanath
k_vishwanath

Reputation: 1585

Cloudwatch alarm to monitor status check of all EC2 instances simultaneously

How can we monitor the system status check of all EC2 instances simultaneously rather than setting up cloudwatch alarm at each EC2 level individually?

If it's not possible via cloudwatch service, can it be done using boto3?

Upvotes: 1

Views: 1160

Answers (1)

Madhan S
Madhan S

Reputation: 937

If you don't want to setup alarms individually, you can automate it, whenever you boot new instance, you can setup cloudwatch rule(when instance state changes from pending to online) to trigger a lambda function, in lambda function you can setup cloudwatch alarm for that instance, for already existing instances also you can setup the alarm with little modification of that script.

Upvotes: 1

Related Questions