Amazon EventBridge
Send events through buses, route them with rules, and run targets on a schedule with EventBridge Scheduler, so you can test event-driven flows locally against Floci.
Features
Event buses
- List event buses with their ARN; find them by name. A bus name opens its rules.
- Create event bus and delete buses (the
defaultbus can't be deleted). The delete dialog lists each bus's rules and warns when schedules or other resources still point at it. - Send events: pick a bus, enter a source, detail type and JSON detail; the dialog stays open so you can send again.
Rules
- List the rules of a bus (choose the bus at the top) with type, state and number of targets; find them by name.
- Event senders: Lambda functions (async destinations) and SES configuration sets that send events to the bus.
- Create rule and Edit: event pattern rules on any bus, or schedule rules (
rate(…)/cron(…)) on thedefaultbus. - Test pattern: check the pattern against a sample event (Match / No match) before saving.
- Enable, Disable and Delete one or more rules.
Rule page
- Targets tab: Add target (Lambda function, SQS queue, SNS topic, event bus, Step Functions state machine or ECS task) and Remove targets. Targets link to their resource page.
- FIFO queue targets ask for a message group ID; ECS task targets ask for a task definition, revision, subnets and security groups.
- Details tab: type, state, event bus, description, ARN, schedule expression or event pattern.
- Connect card with Node.js and Python code that sends an event the rule matches.
- Copy ARN; "Stack: X" link when the rule was created by CloudFormation.
Schedules (EventBridge Scheduler)
- List schedules of all groups or one group, with group, target and state; find them by name.
- Create group and Delete group (deleting a group deletes its schedules; the
defaultgroup can't be deleted). - Create schedule and Edit: one-time (date and time), recurring rate (minutes, hours or days) or recurring cron, with a time zone.
- One-time schedules can Delete after completion.
- Flexible time window: off, or flexible with a window in minutes.
- Targets: Lambda function, SQS queue (message group ID for FIFO), SNS topic, event bus (with source and detail type), Step Functions state machine or ECS task, with an optional JSON input that can use placeholders like
<aws.scheduler.scheduled-time>. - Enable, Disable and Delete one or more schedules.
Schedule page
- Schedule: expression, time zone, flexible time window, state, group, delete after completion, description and ARN.
- Target: type, resource link and input.
- Connect card with Node.js and Python code that creates the same schedule.
- Copy ARN; "Stack: X" link when the schedule was created by CloudFormation.
Seen from other services
- SQS queue and SNS topic pages list the rules and schedules that send events to them.
- A Lambda function's Triggers tab lists the rules and schedules that invoke it.
Typical workflow
- Open Rules with the
defaultbus selected and choose Create rule. - Enter a name, keep Event pattern, write a pattern such as
{"source": ["my.app"]}and check it under Test pattern; choose Create rule. - On the Targets tab, choose Add target and pick a Lambda function or SQS queue.
- Open Event buses, choose Send events, enter source
my.appand send. - Check delivery by polling the target queue or opening the function's Monitor tab: EventBridge doesn't report which target an event reached.
Works with
- AWS Lambda: rule and schedule targets; async invocation destinations can send to a bus.
- Amazon SQS: rule and schedule targets, including FIFO queues.
- Amazon SNS: rule and schedule targets.
- AWS Step Functions: start an execution from a rule or schedule.
- Amazon ECS: run a task from a rule or schedule.
- Amazon SES: configuration sets send email events to the
defaultbus (sourceaws.ses). - AWS CloudFormation: rules and schedules created by a stack link to it.
Limitations
- Floci never matches
numeric,wildcardor array values in event patterns, in Test pattern and in real routing. The rule form says so. - Floci accepts Kinesis and CloudWatch Logs targets but never delivers to them. The console doesn't offer them and marks existing Kinesis targets "(Floci doesn't deliver to Kinesis)".
- Floci returns an event ID for an event sent to a bus that doesn't exist, then drops it; Send events only lists existing buses.
- A one-time schedule with a time that has passed runs right away in Floci (AWS rejects it).
- Floci always fires schedules on time, whatever the flexible time window.
- An ECS target with a bad network configuration reports success but the task doesn't start; the target forms always ask for subnets.