(CodePipeline-Actions): Event created from ECR-Action does not use the default value the ECR-Action is using
See original GitHub issueWhen creating an ECR Action, CDK creates an CloudWatch event. I was expecting it to only listen on PutImage events for the latest
tag since that is the default value provided by the docs and.
Instead the event listens on every tag.
Reproduction Steps
new EcrSourceAction({
actionName: 'Image',
repository,
output: imageArtifact,
variablesNamespace: 'ImageVariables',
});
Creates an event that triggers for all PutImages regardless of the tag.
What did you expect to happen?
new EcrSourceAction({
actionName: 'Image',
repository,
output: imageArtifact,
variablesNamespace: 'ImageVariables',
imageTag: 'latest',
});
The event created by this check only the latest
tag but I only inserted the tag that is provided by default.
What actually happened?
The CW event listens for all PutImage calls regardless of the tag.
Environment
- CDK CLI Version : 1.95.1 (build ed2bbe6)
- Framework Version: 1.95.1
- Node.js Version: 15.12.0
- OS : BigSur 11.2.3
- Language (Version): TypeScript (3.8.3)
Other
If the described behaviour is the desired one I can create a PR for it. 😃
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Troubleshooting CodePipeline - AWS Documentation
Problem: The service role for CodePipeline does not have sufficient permissions for ... For instructions on creating event rules for an Amazon ECR...
Read more >Appendix A: GitHub version 1 source actions - 亚马逊云科技
Triggers the pipeline when a new commit is made on the configured GitHub repository and branch. To integrate with GitHub, CodePipeline uses an...
Read more >Part 3: CI/CD Pipeline with AWS CodePipeline ... - YouTube
Series: Configure and deploy .NET applications with a CI/CD pipeline using managed services from AWS In part 3, learn how to implement a ......
Read more >How to create a CodePipeline with source from another AWS ...
When using AWS services, more often than not, we need multiple AWS accounts for ... IAM role from Account-A will be used for...
Read more >Tuning Your NLU Model - Rasa
If you are getting started with a one of spaCy's supported languages, ... There are components for entity extraction, for intent ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@skinny85 only today found the time to work on this, opened a PR with a proposed solution
@sparten11740 any chance you would be willing top open us a PR adding this feature? It should be relatively straightforward. Check out our “Contributing guide” for some info on how to get started with CDK development.