Events placeholder bucket reference - Amazon CodePipeline
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).

Events placeholder bucket reference

This section is a reference only. For information about creating a pipeline with event detection resources, see Source actions and change detection methods.

Source actions provided by Amazon S3 and CodeCommit use event-based change detection resources to trigger your pipeline when a change is made in the source bucket or repository. These resources are the CloudWatch Events rules that are configured to respond to events in the pipeline source, such as a code change to the CodeCommit repository. When you use CloudWatch Events for an Amazon S3 source, you must turn on CloudTrail so the events are logged. CloudTrail requires an S3 bucket where it can send its digests. You can access the log files for your CloudWatch Events resources from the custom bucket, but you cannot access the data from the placeholder bucket.

  • If you used the CLI or Amazon CloudFormation to set up the CloudWatch Events resources, you can find your CloudTrail files in the bucket that you specified when you set up your pipeline.

  • If you used the console to set up your pipeline with an S3 source, the console uses a CloudTrail placeholder bucket when it creates your CloudWatch Events resources for you. CloudTrail digests are stored in the placeholder bucket in the Amazon Web Services Region where the pipeline is created.

You can change the configuration if you want to use a bucket other than the placeholder bucket.

Note

Data written to CloudTrail placeholder buckets automatically expires after one day and is not retained.

For more information about finding and managing your CloudTrail log files, see Getting and Viewing Your CloudTrail Log Files.

Events placeholder bucket names by Region

This table lists the names of the S3 placeholder buckets that contain log files that track change detection events for pipelines with Amazon S3 source actions.

Note: The placeholder bucket name for the China (Beijing) Region is codepipeline-cloudtrail-placeholder-bucket-cn-north-1 for the Region identifier of cn-north-1. The placeholder bucket name for the China (Ningxia) Region is codepipeline-cloudtrail-placeholder-bucket-cn-northwest-1 for the Region identifier cn-northwest-1.