Ramratan Gupta
Ramratan Gupta

Reputation: 1086

How to enable cloud watch alarm / event rule for AWS spot interruption notification?

Hi came to know that I can enable AWS cloud watch alarm for AWS EC2 spot intance if there is intrputtion for termination notice, here is more details

Now CloudWatch users can setup a rule that automatically sends the EC2 Spot two-minute warning to an SNS topic to get a push notification.

I have no clue how to setup SNS topic to get intrputtion for termination notice?

Upvotes: 3

Views: 1247

Answers (1)

Vikyol
Vikyol

Reputation: 5615

  1. Create an SNS topic and subscribe to this topic to get notifications.

  2. Create a CloudWatch Event Rule to trigger an action whenever a spot instance is terminated. Configure your event as shown in the screenshot below.

  3. Select SNS Topic as the target and enter the ARN of the topic you created.

enter image description here

Upvotes: 3

Related Questions