About Amazon CodeBuild information in CloudTrail - Amazon CodeBuild
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).

About Amazon CodeBuild information in CloudTrail

CloudTrail is enabled on your Amazon account when you create the account. When activity occurs in CodeBuild, that activity is recorded in a CloudTrail event along with other Amazon service events in Event history. You can view, search, and download recent events in your Amazon account. For more information, see Viewing events with CloudTrail event history in the Amazon CloudTrail User Guide.

For an ongoing record of events in your Amazon account, including events for CodeBuild, create a trail. A trail enables CloudTrail to deliver log files to an S3 bucket. By default, when you create a trail in the console, the trail applies to all regions. The trail logs events from all regions in the Amazon partition and delivers the log files to the S3 bucket that you specify. You can configure other Amazon services to further analyze and act upon the event data collected in CloudTrail logs. For more information, see:

All CodeBuild actions are logged by CloudTrail and are documented in the CodeBuild API Reference. For example, calls to the CreateProject (in the Amazon CLI, create-project), StartBuild (in the Amazon CLI, start-project), and UpdateProject (in the Amazon CLI, update-project) actions generate entries in the CloudTrail log files.

Every event or log entry contains information about who generated the request. The identity information helps you determine the following:

  • Whether the request was made with root or user credentials.

  • Whether the request was made with temporary security credentials for a role or federated user.

  • Whether the request was made by another Amazon service.

For more information, see the CloudTrail userIdentity elementin the Amazon CloudTrail User Guide.