Skip to content

Support Eventbridge events delivered by Cloudtrail #8451

Open

Description

@faridnsh

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.

Activity

  1. bblommers commented on Jan 20, 2025

    @bblommers
    Collaborator

    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.

    Which API action(s) do you want to see supported?

  2. Mide69 commented on Aug 18, 2026

    @Mide69
    Contributor

    @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.

    Could this be assigned to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions