-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(CodePipeline-Actions): Event created from ECR-Action does not use the default value the ECR-Action is using #13818
Comments
Hey @skinny85, This seems to be unrelated. It might be connected but on my end the event does trigger an execution but simply not as I would expect it. The event created by CDK is missing the tag information and thus triggers an execution for every new tag created through Max |
Yep @Kruspe, I think you're right. I suspect the problem is here:
We send the Let me work on a quick fix for this. In the meantime, you should be able to work around this by explicitly passing Thanks, |
…y tag The EcrSourceAction was incorrectly being triggered on a push of every tag if the `imageTag` property was not provided, instead of defaulting to 'latest', like its documentation suggested. Correct the error by passing 'latest' to the created CloudWatch Event if `imageTag` was not set. Fixes aws#13818
Sounds good. Max |
…y tag (#13822) The EcrSourceAction was incorrectly being triggered on a push of every tag if the `imageTag` property was not provided, instead of defaulting to 'latest', like its documentation suggested. Correct the error by passing 'latest' to the created CloudWatch Event if `imageTag` was not set. Fixes #13818 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…y tag (aws#13822) The EcrSourceAction was incorrectly being triggered on a push of every tag if the `imageTag` property was not provided, instead of defaulting to 'latest', like its documentation suggested. Correct the error by passing 'latest' to the created CloudWatch Event if `imageTag` was not set. Fixes aws#13818 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@skinny85 imo the way to fix this would've been to change the docs - or at least to provide an alternative to trigger on all tags as part of the fix if Defaulting |
Good call @sparten11740, I haven't thought of that. What do you think about allowing |
@skinny85 that sounds reasonable |
@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. |
@skinny85 only today found the time to work on this, opened a PR with a proposed solution |
…ion (#17270) The EcrSourceAction could previously be used to trigger on changes to all tags of an image. As part of the fix #13818, the imageTag was defaulted to latest if not provided. Therefore it was no longer possible to call the underlying onCloudTrailImagePushed function with an undefined imageTag to watch changes on all tags. Reintroduce triggering on all tags by passing an empty string as the imageTag. Fixes #13818 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…ion (aws#17270) The EcrSourceAction could previously be used to trigger on changes to all tags of an image. As part of the fix aws#13818, the imageTag was defaulted to latest if not provided. Therefore it was no longer possible to call the underlying onCloudTrailImagePushed function with an undefined imageTag to watch changes on all tags. Reintroduce triggering on all tags by passing an empty string as the imageTag. Fixes aws#13818 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…ion (aws#17270) The EcrSourceAction could previously be used to trigger on changes to all tags of an image. As part of the fix aws#13818, the imageTag was defaulted to latest if not provided. Therefore it was no longer possible to call the underlying onCloudTrailImagePushed function with an undefined imageTag to watch changes on all tags. Reintroduce triggering on all tags by passing an empty string as the imageTag. Fixes aws#13818 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
When 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
Creates an event that triggers for all PutImages regardless of the tag.
What did you expect to happen?
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
Other
If the described behaviour is the desired one I can create a PR for it. :)
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: