Using AWS Lambda with Amazon CloudWatch Events | Send notification when ec2 stops

preview_player
Показать описание
Amazon CloudWatch events help you to respond to state changes in your AWS resources.
When your resources change state, they automatically send events into an event stream.
You can create rules that match selected events in the stream and route them to your AWS Lambda function to take action.
For example, you can automatically invoke an AWS Lambda function to log the state of an EC2 instance or AutoScaling group.

In this video , I demonstrated the same

Steps :

Step 1: Create IAM (SES access & cloudwatch access)
Step 2: Create EC2 instance(Prod)
Step 3: Mail Verification from SES
Step 4: Create Lambda Function
Step 5: Create Cloudwatch Event trigger

Check this playlist for more AWS Projects in Big Data domain:
Рекомендации по теме
Комментарии
Автор

Hello can i get the message like when ec2 is started and stopped. Like attention please mail from aws lambda your ec2 state is stopped and when it changes the state getting the mail like ec2 state is start now

ShrutiDeora-hnqt
Автор

good evening i used your step but still having an error message

kcbrown
Автор

Thanks for this video. It really helped me for my project.

vishnuprasad.m
Автор

hello,

can I use a group email address as a sender?

muhammadfatahhirzadaulay