New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(pipelines): Add support for Amazon ECR source action #16378
Comments
@alexpulver : thanks for doing this 🙏. Been racking my brain trying to find a way around the limitation of CDK Pipeline sources for a little while. Glad I found your RFE ! Quick question : how would you trigger the CDK self-mutating pipeline from both a source code repo change and an ECR repo change ? Couldn't tell from the PR #16385 Since the pipeline needs to watch for changes in its own code, the primary source has to be the source code repo, I'd guess. But then how would you add the ECR repo source ? The current parameters in |
|
@stockf : thanks for the response. Agreed. I tested this with a "local" implementation of the changes provided in the PR and it works like a charm. Here's the snipper in Python : build_step = pipelines.ShellStep(
"Synth",
input=code_source,
additional_inputs={
"ecr_artifact": ecr_source,
},
... The source stage of the pipeline will have both actions defined in parallel and the pipeline will get triggered for either an update to the source code or the ECR repo. |
Closes #16378 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Add Amazon ECR source action to pipelines.CodePipelineSource class.
Use Case
Pipelines that trigger on push to Amazon ECR repository (e.g., base image update due to security CVE)
Proposed Solution
Add
pipelines.CodePipelineSource.ecr(...)
factory method.Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: