AWS现场中断通知如何启用cloudwatch告警/事件规则?

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

你好知道如果有终止通知的输入,我可以为 AWS EC2 spot intance 启用 AWS cloud watch alarmhere 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.

我不知道如何设置 SNS 主题以获得终止通知的输入?

  1. 创建 SNS topic 并订阅此主题以获取通知。

  2. 创建 CloudWatch Event Rule 以在 spot 实例终止时触发操作。 按照下面的屏幕截图所示配置您的事件。

  3. Select SNS 主题 作为目标并输入您创建的主题的 ARN。