Example: To create SNS via alerts when new servers (EC2) instances are created or terminated on AWS.
Navigate to CloudWatch Service on AWS:
Step 1: Create a new Rule forEC2 API call “RunInstances”
Step 2: “EC2 Instancestate-change notification” with status “running” if you want to get emails for any instance that starts up.
– Configure an SNS topic as destination. You can also customise the message using data from the event.
– Subscribe to the SNS topic with your email address to start receiving events.

Enter ‘rule name’ and description below

After filling in all details, you will get success window showing all rules are configured correctly.
Then you can subscribe to the SNS topic via email, SMS etc