Determine whether Amazon EC2 terminated a Spot Instance - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Determine whether Amazon EC2 terminated a Spot Instance

If a Spot Instance is terminated, you can use CloudTrail to see whether Amazon EC2 terminated the Spot Instance. In Amazon CloudTrail, the event name BidEvictedEvent indicates that Amazon EC2 terminated the Spot Instance.

To view BidEvictedEvent events in CloudTrail
  1. Open the CloudTrail console at https://console.amazonaws.cn/cloudtrail/.

  2. In the navigation pane, choose Event history.

  3. In the filter drop-down, choose Event name, and then in the filter field to the right, enter BidEvictedEvent.

  4. Choose BidEvictedEvent in the resulting list to view its details. Under Event record, you can find the instance ID.

For more information about using CloudTrail, see Log Amazon EC2 and Amazon EBS API calls with Amazon CloudTrail.