Amazon Elastic Compute Cloud events - Amazon EventBridge
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).

Amazon Elastic Compute Cloud events

Amazon EC2 sends service events directly to EventBridge, as well as via Amazon CloudTrail.

Amazon EC2 service events

Amazon EC2 sends the following events directly to EventBridge:

  • Capacity Block Delivered

  • Capacity Block Expiration Warning

  • EBS Copy Snapshot Missed Completion Duration

  • EBS Fast Snapshot Restore State-change Notification

  • EBS Multi-Volume Snapshots Completion Status

  • EBS Snapshot Acceleration State-change Notification

  • EBS Snapshot Block Public Access Disabled

  • EBS Snapshot Block Public Access Enabled

  • EBS Snapshot Notification

  • EBS Volume Notification

  • EC2 AMI Available

  • EC2 AMI Failed

  • EC2 AMI State Change

  • EC2 Capacity Reservation Active

  • EC2 Capacity Reservation Cancelled

  • EC2 Capacity Reservation Delayed

  • EC2 Capacity Reservation Expired

  • EC2 Capacity Reservation Failed

  • EC2 Capacity Reservation Scheduled

  • EC2 Capacity Reservation Unsupported

  • EC2 Fast Launch State-change Notification

  • EC2 Instance Rebalance Recommendation

  • EC2 Instance State-change Notification

  • EC2 Spot Instance Interruption Warning

  • EC2 Spot Instance Rebalance Recommended

  • EC2 Spot Instance Request Fulfillment

  • Future Capacity Request Canceled

  • Future Capacity Request Completed

  • Future Capacity Request Delayed

  • Future Capacity Request Failed

  • Future Capacity Request in Assessing

  • Future Capacity Request Scheduled

  • Future Capacity Request Unsupported

  • Launch Template Alias Change

  • On-Demand Capacity Reservation Billing Ownership Request Accepted

  • On-Demand Capacity Reservation Billing Ownership Request Cancelled

  • On-Demand Capacity Reservation Billing Ownership Request Expired

  • On-Demand Capacity Reservation Billing Ownership Request Pending

  • On-Demand Capacity Reservation Billing Ownership Request Rejected

  • On-Demand Capacity Reservation Billing Ownership Revoked

Delivery type: Best effort

To match against all events from this service, create an event pattern that matches against the following event attribute:

  • source: aws.ec2

{ "source": ["aws.ec2"] }

To match against specific events, include a detail-type attribute specifying an array of event names to match. For example:

{ "source": ["aws.ec2"], "detail-type": ["EC2 Instance State-change Notification"] }

For more information, see Creating event patterns in the Amazon EventBridge User Guide.

Amazon EC2 events delivered via Amazon CloudTrail

Amazon CloudTrail sends events originating from Amazon EC2 to EventBridge. Amazon services deliver events to CloudTrail on a best effort basis. For more information, see Amazon service events delivered via Amazon CloudTrail in the Amazon EventBridge User Guide.

To match events from this service delivered by Amazon CloudTrail, create an event pattern that matches against the following event attributes:

  • source: aws.ec2

  • eventSource: ec2.amazonaws.com

{ "source": ["aws.ec2"], "detail-type": ["Amazon API Call via CloudTrail"], "detail": { "eventSource": ["ec2.amazonaws.com"] } }

To match against a specific API calls from this service, include an eventName attribute specifying an array of API calls to match:

{ "source": ["aws.ec2"], "detail-type": ["Amazon API Call via CloudTrail"], "detail": { "eventSource": ["ec2.amazonaws.com"], "eventName": ["api-action-name"] } }