CloudTrail supports logging non-API service events to your Amazon S3 bucket. These events are related to AWS services but are not directly triggered by a request to a public AWS API. For these events, the
eventType field is
AwsServiceEvent. The following is an example scenario of an AWS service event.
- You want to run a Spot Instance for your application and submit a bid for a specified number and type of EC2 instances.
- Your bid price exceeds the current Spot price, and the EC2 instances are created for you.
- When the Spot price exceeds your bid price, your EC2 Spot Instances are terminated and given to other customers.
In the example, CloudTrail logs the service event activity to your Amazon S3 bucket. One event shows that the EC2 Spot Instance was created and another event shows when the EC2 Spot Instance was terminated. For information related to the event, see the