Menu
AWS CodePipeline
User Guide (API Version 2015-07-09)

Configure Your Amazon S3 Pipelines to Use Amazon CloudWatch Events for Change Detection

You can now use event-based Amazon CloudWatch Events rules as the change detection method for your pipelines with an Amazon S3 source. Amazon CloudWatch Events detects changes in real time and then starts your pipeline. You must update existing pipelines to use this feature. When you create or edit a pipeline in the console, AWS CodePipeline creates the Amazon CloudWatch Events event-based rule and an AWS CloudTrail trail.

This table includes procedures for Amazon S3 pipelines.

Method Instructions Further action required?
Configuring pipelines in the console
  1. Open your pipeline in the console.

  2. Choose Edit.

  3. Choose the pencil icon next to the Amazon S3 source action.

  4. Choose Use Amazon CloudWatch Events to automatically start my pipeline when a change occurs.

  5. Choose Update.

  6. Choose Save pipeline changes.

See Edit a Pipeline (Console).

The Amazon CloudWatch Events rule and AWS CloudTrail trail are created for you.

No further action is required.

Configuring pipelines in the CLI

Use the update-pipeline command to set the PollForSourceChanges parameter to false.

See Edit a Pipeline (AWS CLI).

You must create:

  • The AWS CloudTrail trail.

  • The Amazon CloudWatch Events rule.

See Start an Amazon S3 Pipeline Automatically Using a CloudWatch Events Rule.

Configuring pipelines in AWS CloudFormation

Update the AWS CloudFormation resource stack.

See What Is Amazon CloudWatch Events.

You must create:

  • The AWS CloudTrail trail.

  • The Amazon CloudWatch Events rule.

See Start an Amazon S3 Pipeline Automatically Using a CloudWatch Events Rule.