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

Create a CloudWatch Events Rule That Schedules Your Pipeline to Start (Console)

To create a CloudWatch Events rule with a schedule as the event source

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. In the navigation pane, choose Events.

  3. Choose Create rule, and then under Event Source, choose Schedule.

    
                            S3 source state change rule
  4. Set up the schedule using a fixed rate or expression. For information, see Schedule Expression for Rules.

  5. In the Targets area, choose CodePipeline.

  6. Enter the pipeline ARN for the pipeline execution that starts when triggered by this schedule.

    Note

    You can find the pipeline ARN in the metadata output after running the get-pipeline command.

  7. Choose one of the following to create or specify an IAM service role that gives Amazon CloudWatch Events permissions to invoke the target associated with your Amazon CloudWatch Events rule (in this case, the target is AWS CodePipeline).

    • Choose Create a new role for this specific resource to create a service role that grants Amazon CloudWatch Events permissions to your start your pipeline executions when triggered.

    • Choose Use existing role to enter a service role that grants Amazon CloudWatch Events permissions to your start your pipeline executions when triggered.

  8. Choose Configure details.

  9. On the Configure rule details page, type a name and description for the rule, and then choose State to enable the rule.

  10. If you're satisfied with the rule, choose Create rule.