Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem Statement

Instance retirement notifications are sent via email and only to the email address associated with the account. Email can be lost or ignored and does not make for readably actionable events.

Instance Retirement

An instance is scheduled to be retired when AWS detects irreparable failure of the underlying hardware hosting the instance. When an instance reaches its scheduled retirement date, it is stopped or terminated by AWS. If your instance root device is an Amazon EBS volume, the instance is stopped, and you can start it again at any time. Starting the stopped instance migrates it to new hardware. If your instance root device is an instance store volume, the instance is terminated, and cannot be used again.

...

By default AWS will send an email to the account owner prior to the event with the instance ID and retirement date. In order to have a more easily expandable process, and broaden the scope of notification, a CloudWatch event can be created and multiple targets can be defined.

Note

The CloudWatch event is account specific. If you have multiple accounts, you will need to define a CloudWatch event in each account.

CloudWatch Event

From the CloudWatch dashboard you will need to create a new event and its corresponding rule. This rule builds off of an event pattern :

...