-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws_ecr: repository.on_event() creates an event that never fires #29815
Comments
Actually, this issue was already reported here #29225 |
|
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the bug
The event created by the method
.on_event()
of an ecr.Repository does not fire. And I suspect this is because the event behavior filters forresources
which is not specified in the ecr event.Expected Behavior
When a new image is pushed to the repository, an event should fire.
Current Behavior
No event is fired.
Reproduction Steps
We are creating the rule like this:
In the console, that creates the following event pattern:
And the event is never fired. But if instead I create the event like this:
The following event pattern is created:
And events fire as expected
Possible Solution
The event that is sent to the lambda has an empty array for
resources
. That could be why the event is not fired, if it tries to match for this property.Additional Information/Context
No response
CDK CLI Version
2.131.0 (build 92b912d)
Framework Version
aws-cdk-lib==2.131.0
Node.js Version
v18.19.0
OS
MacOS
Language
Python
Language Version
Python 3.10.10
Other information
No response
The text was updated successfully, but these errors were encountered: