aws/agent-toolkit-for-aws/amazon-eventbridge-event-bus

Claude Code and agent skill by aws/agent-toolkit-for-aws

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Builds, runs, debugs, and operates event-driven applications using EventBridge Event Bus - a managed, centrally governed publish/subscribe event bus that an organization can share across many teams and accounts. Applicable when workloads need event-driven architectures, decoupling, choreography, asynchronous integration, pub/sub, fan-out, event ordering, delivered in sequence, event router, event broker, event bus, event store, event retention, event replay, deduplication, avro, protobuf, cloudevents, uses events or messages. Designed as a centrally managed event bus platform allowing governance and control - such as subscriber control, revocation, per-account throttling - while giving application owners flexibility across an organization spanning multiple accounts, with end-to-end open-standards observability and cost allocation. Also helps reduce costs in high fan-out scenarios where multi-account forwarding adds cost. A serverless, managed alternative to self-managed event streaming platforms.

Install

npx vskill@latest install aws/agent-toolkit-for-aws/amazon-eventbridge-event-bus

SKILL.md

The same SKILL.md was published earlier as aws/agent-toolkit-for-aws/amazon-eventbridge-event-bus.

Building with the new EventBridge custom event buses

Overview

The new EventBridge custom event bus routes events and retains them. You publish with one of two APIs, and subscribers filter, optionally transform, and deliver each matching event to one target.

Read chapters 5 and 6 before writing any filter, transformer, or target parameter. The two publish APIs deliver different payload shapes, and an expression written for one silently matches nothing against the other.

Publish metrics are on by default, so you can always tell whether events reached a bus. Subscriber logs are off by default, so turn them on before you debug a delivery rather than after (chapter 18).

Works best with the AWS MCP server, which is recommended for running the CLI calls in this skill: it executes them in a sandboxed environment with audit logging. All guidance also works with standard AWS CLI access.

Conventions

The key words MUST, MUST NOT, SHOULD, and MAY in this skill are to be interpreted as described in RFC 2119. They appear only in decision procedures, where following the wrong course either breaks the configuration or loses events silently. MUST marks an absolute requirement, SHOULD a strong recommendation you may have a specific reason to set aside, and MAY a genuine option.

Everything else is ordinary description. A sentence stating how the service behaves carries no keyword, because it is a fact rather than an instruction to you.

When not to use this skill

This skill is only about the new custom event buses, the service you reach with the eventsv2 CLI and the eventbridgev2 SDK clients. It does not cover:

  • Classic EventBridge, meaning the events API with rules, targets, archives, and event patterns on

AWS::Events::Rule. The two services share the events: IAM namespace and some vocabulary, which is exactly why they are easy to confuse. If you are writing a rule, you are not on a new bus. Chapter 3 maps the concepts across if you are migrating.

  • EventBridge Pipes, Scheduler, and Schemas (the classic schema registry and its discovery feature).

Different APIs.

  • Configuring the Firehose service itself, such as buffering hints or record transformation. A

Firehose delivery stream is a valid subscriber target; chapter 9 covers that side of it.

Trigger examples

  1. "Write a filter so this subscriber only gets orders over $500."
  2. "My producer says PUBLISHED but nothing shows up in the queue. What do I check?"
  3. "Should I use PutEvents or PutRawEvents for Protobuf payloads?"
  4. "Set up a subscriber that reprocesses everything from the last two days."
  5. "Write a JSONata expression that pulls the customer id out of the event into a DynamoDB putItem."

Guardrail — where this skill's own files live (MCP vs local install)

This skill can be loaded two ways, and they resolve the skill's own bundled files from different places. Determine how the skill was loaded before reading a reference:

  • Loaded through the AWS MCP `retrieve_skill` tool: The skill is not

installed on the local filesystem. You MUST fetch each reference via retrieve_skill with the file parameter (e.g. file="references/setup-walkthroughs.md"). Do NOT file_read these paths locally — they do not exist on disk.

  • Installed locally (e.g. .kiro/skills/amazon-eventbridge-event-bus/ or

~/.claude/skills/amazon-eventbridge-event-bus/): Read files from the local skill directory using relative paths.

This distinction applies only to the skill's own packaged files. User data and session artifacts are always read from and written to the user's working directory. Never fetch or write customer data through retrieve_skill.

Reference files

The chapters below carry the decisions and the failure modes; the detail lives in these files. Load a file when the task matches its row, and do not load them all by default.

FileWhen to load
setup-walkthroughs.mdstanding up a working bus end to end, in one account or shared across accounts with AWS RAM, including prerequisites and teardown
code-samples.mdwriting an individual CLI or SDK call (Python, Java, TypeScript): create a bus and subscriber, publish with either API, binary payloads, replay, cross-account grants, waiters, per-entry results, throttling backoff
filters-and-expressions.mdwriting any filter pattern, JSONata expression, or target parameter that reads the event; both delivered envelopes in full
target-configuration.mdconfiguring any subscriber target, especially a universal target
target-contract.mdwriting an actual CreateSubscriber call: required fields, a working example per target type, literal versus JSONata, the delivery error taxonomy
migrating-from-classic.mdmigrating from classic EventBridge, planning the migration sequence, or classic habits producing wrong new-bus config
event-sources.mdputting AWS service events or partner events on a bus with an event source, or forwarded events not arriving or not matching a filter
provisioning-and-state.mdcreating or updating a bus, or a resource stuck in an unexpected state
delivery-troubleshooting.mdan event published but never arrived, or building a test rig that counts deliveries correctly
authorization.mdwriting an IAM policy or bus resource policy, cross-account access checks, or anything that forwards events into a bus
replay-and-recovery.mdreading history rather than new events, pausing or resuming, or a replay that looks broken
observability.mdsetting up metrics, alarms, or the vended-log delivery; reading delivery logs; observing across accounts
schema-registries.mdpublishing Avro, Protobuf, or anything that is not JSON; the accepted content types; running alongside Kafka
cloudevents.mdpublishing or consuming CloudEvents, or filtering on CloudEvents attributes
security-and-sharing.mdencrypting a bus, sharing it cross-account, or tagging
cost-and-quotas.mdbilling mechanics, who pays what across accounts, shaping events for cost, or handling throttling
infrastructure-as-code.mdwriting a CloudFormation template, splitting stacks across accounts, or private connectivity

1. The three resources

Event bus. The thing you publish to. It routes events and retains them.

Subscriber. A statement of which events you want and where to send them, in one resource. It watches its bus, keeps the events matching its filter, optionally transforms each one, and delivers it to exactly one target. To send one event to several targets, create several subscribers on the same bus.

Event source. A managed feed into a bus, either AWS service events or a partner/SaaS source.

Names and identifiers:

  • A bus ARN and a subscriber ARN both end in a service-generated id after the name:

arn:aws:events:us-east-1:111122223333:event-busv2/my-bus/exampleid0123456789abcdef. Store the full ARN, not the name, because the name alone does not identify the resource and re-creating a deleted bus with the same name yields a different id.

  • Event source names are unique per account, not per bus.
  • Three names identify this service and they do not match. The CLI command and the endpoint host

are eventsv2, as in aws eventsv2 create-event-bus and eventsv2.{region}.amazonaws.com. The SDK clients are eventbridgev2. IAM actions and ARNs are events, shared with classic EventBridge, as in events:PutEvents and arn:aws:events:...:event-busv2/.... See chapter 14.

2. A router with a durable log behind it

The bus routes each event to matching subscribers, and it also retains events for a configured period, set per bus with StorageConfiguration.RetentionPeriodInDays (1 to 365 days). Retention is what makes four other features possible: starting positions, pausing and resuming, replay, and a subscriber created today reading events published yesterday. The retention window is clamped at the bus's creation time, so on a young bus even a recent past timestamp can fall outside it.

3. Coming from classic EventBridge

A classic rule plus its target becomes one subscriber on the new bus. Four new-bus concepts have no classic analogue: retention on the bus itself, a subscriber starting position, pause and resume with a backlog, and two publish APIs with different payload models. That last changes how you write filters, so a classic event pattern ported unchanged works only for PutEvents. The concept mapping, the habits that carry over incorrectly, and a step-by-step migration sequence are in migrating-from-classic.md.

4. AWS service and partner event sources

An event source is a managed feed onto your bus. You create one naming a destination bus and one origin, and the service stands up the forwarding on the classic EventBridge side for you. There is no role and no delivery code: the managed path uses the service's own identity.

Configuration is discriminated and exactly one variant MUST be set:

VariantOriginRequired member
AwsServiceEventsConfigurationone AWS service, as aws.s3AwsService
PartnerEventsConfigurationa classic partner event sourcePartnerEventSourceArn

Both take an optional Pattern, which narrows what forwards and is evaluated on the classic side against the classic envelope. Your pattern MUST NOT carry a `source` key or a top-level `account` or `region`, because the service sets those itself to pin the forward to your account and origin.

A forwarded event arrives as the whole classic envelope. Data holds it, ContentType is application/eventbridge+json, your content is at $events.Data.detail, and the source and detail-type are in SystemMetadata as `aws:Source` and `aws:DetailType`. So a classic rule's source filter does not transfer: the equivalent is a SYSTEM_METADATA filter, {"aws:Source":["aws.s3"]}.

Only that `SystemMetadata` pair proves an AWS service or partner produced the event. No publish call can write either key. A raw payload can imitate the envelope exactly, so a DATA filter on the payload's source matches a forgery as readily as the real thing. You SHOULD filter on `aws:Source` whenever provenance matters, and MUST match its value rather than its presence, because a direct PutEvents sets the key too, from its own never-aws.-prefixed Source.

EventBusArn is immutable. Recovery splits by failure: from CREATE_FAILED or UPDATE_FAILED, UpdateEventSource converges the classic side back to your record, while from DELETE_FAILED the only recovery is another delete.

A bus owner's control is at create time. CreateEventSource is authorized against the destination bus with an events:source condition key, and RevokeResource is how an owner stops a feed that already exists (chapter 22). Prerequisites, encryption, dead-lettering, and what appears in your classic account are in event-sources.md.

5. Choosing a publish API

The choice fixes the payload shape, and the payload shape determines every filter, transformer, and target parameter you go on to write.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2,779
Repository forks
341
7-day trend score
40

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aws/agent-toolkit-for-aws/amazon-eventbridge-event-bus/badge)](https://verified-skill.com/skills/aws/agent-toolkit-for-aws/amazon-eventbridge-event-bus)

Something wrong with this skill or its page? Tell us.