Amazon ECR source actions and EventBridge resources
To add an Amazon ECR source action in CodePipeline, you can choose either to:
-
Use the CodePipeline console Create pipeline wizard (Create a custom pipeline (console)) or Edit action page to choose the Amazon ECR provider option. The console creates an EventBridge rule that starts your pipeline when the source changes.
-
Use the CLI to add the action configuration for the
ECR
action and create additional resources as follows:-
Use the
ECR
example action configuration in Amazon ECR source action reference to create your action as shown in Create a pipeline (CLI). -
The change detection method defaults to starting the pipeline by polling the source. You should disable periodic checks and create the change detection rule manually. Use one of the following methods: Create an EventBridge rule for an Amazon ECR source (console), Create an EventBridge rule for an Amazon ECR source (CLI), or Create an EventBridge rule for an Amazon ECR source (AWS CloudFormation template) .
-