Cloud watch:
We usually monitor and get the metrics of all Ec2 resources by using Cloud watch.
So Here we create Cloud watch event to monitor the state of the EC2 instance.
Here we use the below topics to get the mail notification.
1.SNS topic
2.Cloud watch event
3.Ec2 status change
First lets create SNS topic to get the mail notification.
Go to Services and create SNS topic like below and create a topic:ec2monitor(here i created topic name as like this).
Once you done, you will get a notification mail to confirm the subscription, until you confirm subscription , you won't get mail from AWS for the required topic.
Once confirmed subscription , you will see like below pic as "confirmed".
Now you can configure Cloud watch event like below to monitor the EC2 status.
Go to Services--> Cloudwatch
Once you configure the Event , you can change status of Ec2 from any state to other state.
So, you will get Mail notification like below.
Here how we can monitor the status of EC2 status by using "Cloud watch Events".Like this we can monitor number of events by using Cloudwatch of AWS resources.
 
Thank you for reading 👍👍👍
