Amazon S3 source actions and EventBridge with Amazon CloudTrail - 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).

Amazon S3 source actions and EventBridge with Amazon CloudTrail

To add an Amazon S3 source action in CodePipeline, you choose either to:

Amazon CloudTrail is a service that logs and filters events on your Amazon S3 source bucket. The trail sends the filtered source changes to the EventBridge rule. The EventBridge rule detects the source change and then starts your pipeline.

Requirements:

  • If you are not creating a trail, use an existing Amazon CloudTrail trail for logging events in your Amazon S3 source bucket and sending filtered events to the EventBridge rule.

  • Create or use an existing S3 bucket where Amazon CloudTrail can store its log files. Amazon CloudTrail must have the permissions required to deliver log files to an Amazon S3 bucket. The bucket cannot be configured as a Requester Pays bucket. When you create an Amazon S3 bucket as part of creating or updating a trail in the console, Amazon CloudTrail attaches the required permissions to a bucket for you. For more information, see Amazon S3 Bucket Policy for CloudTrail.