You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Eventbridge events delivered by Cloudtrail #8451
I see that we have support for CreateBucket event but intentionally no other event is supported. My use case is that I have an Cloudformation stack that creates a eventbridge rules and I want to test it with moto.
Can we support other events? Or just do it as much as possible?
There's some challenges though. Some API actions don't have events or result in different events. Some also may not have all the parameters or responses logged. Not all of this is well documented of course by AWS.
I'm also happy to contribute to this, just starting a discussion to see where we can take this.
Hi @faridnsh! There are a few other S3 events supported as well, the events page just hasn't been updated yet. The s3 page does show which events are supported, under the put_bucket_notification_configuration feature. (http://docs.getmoto.org/en/latest/docs/services/s3.html)
The current approach is to implement it one API action at the time. A little bit more time consuming, but it does ensure that we don't have to worry about the details.
@bblommers I'd like to work on this, scoped down to a first concrete step rather than trying to cover everything at once. moto/events/notifications.py already has a generic dispatcher (send_notification) that special-cases aws.s3 + CreateBucket. Plan: add EC2 "Instance State-change Notification" events (a commonly used, well-documented one) following that exact pattern, wiring send_notification calls into the relevant EC2 instance state transitions (run/start/stop/terminate). Once that template is in, further event types can be added incrementally in follow-up PRs instead of one large change.
Activity
bblommers commentedon Jan 20, 2025
Hi @faridnsh! There are a few other S3 events supported as well, the
eventspage just hasn't been updated yet. Thes3page does show which events are supported, under theput_bucket_notification_configurationfeature. (http://docs.getmoto.org/en/latest/docs/services/s3.html)The current approach is to implement it one API action at the time. A little bit more time consuming, but it does ensure that we don't have to worry about the details.
Which API action(s) do you want to see supported?
Mide69 commentedon Aug 18, 2026
@bblommers I'd like to work on this, scoped down to a first concrete step rather than trying to cover everything at once.
moto/events/notifications.pyalready has a generic dispatcher (send_notification) that special-casesaws.s3+CreateBucket. Plan: add EC2 "Instance State-change Notification" events (a commonly used, well-documented one) following that exact pattern, wiringsend_notificationcalls into the relevant EC2 instance state transitions (run/start/stop/terminate). Once that template is in, further event types can be added incrementally in follow-up PRs instead of one large change.Could this be assigned to me?