Permissions by scenario
Each role in a Custom Event Bus deployment needs a small, specific set of grants. This page lists them by
scenario so that you can copy the set for the role you are creating. For example, a producer's role needs
events:PutEvents or events:PutRawEvents on the bus ARN. If the bus uses a
customer managed key, the key's policy must also allow the events.amazonaws.com principal.
The following table lists the permission grants for each scenario. In the ARN patterns, replace
region, account, and
name with your own values.
Scenario | Who needs the grant | Grants |
|---|---|---|
Publish to a bus | The producer's identity |
|
Publish Avro or Protobuf with a schema registry | The role in | Read access to the schema in the registry. For a Glue registry, grant the Glue Schema Registry read actions. For a Confluent registry, grant the secret and network access it requires. The role trusts |
Publish to a bus in another account | The producer's identity, and the bus | The publish action in the producer's identity policy. The bus must also grant the same action to the producer's account through an AWS RAM share or the bus resource policy. |
Create and manage subscribers | The subscriber owner's identity |
|
Deliver to a target | The delivery role | Trust for |
Attach an event source | The event source owner's identity, the dead-letter queue, and the key |
|
Administer a bus | The bus owner's identity |
|
Encrypt a bus with your own key | The key policy | The bus creator's identity needs |
For the full action list and condition keys, see Actions, resources, and condition keys for the Custom Event Bus. For sharing, see Sharing a Custom Event Bus with other accounts.