View a markdown version of this page

Permissions by scenario - Amazon EventBridge
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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:PutRawEvents on the bus ARN and, if the bus uses a customer managed key, the key's policy must allow the events.amazonaws.com principal.

ScenarioWho needs the grantGrants
Publish to a busThe producer's identityevents:PutEvents or events:PutRawEvents on the bus ARN; events:DescribeEventBus to confirm the bus is ACTIVE
Publish Avro or Protobuf with a schema registryThe role in PutRawEvents RoleArnRead access to the schema in the registry: the Glue Schema Registry read actions for a Glue registry, or the secret and network access your Confluent registry requires. The role trusts events.amazonaws.com. See Supported content types: JSON, Avro, Protobuf, and raw bytes
Publish to a bus in another accountThe producer's identity, and the busThe publish action in the producer's identity policy, and the same action granted to the producer's account by an Amazon RAM share or the bus resource policy
Create and manage subscribersThe subscriber owner's identityevents:CreateSubscriber on the bus and on arn:aws:events:region:account:subscriber/name/*; iam:PassRole on the delivery role; events:DescribeSubscriber, events:UpdateSubscriber, events:DeleteSubscriber on the subscriber; events:TagResource if the create carries tags
Deliver to a targetThe delivery roleTrust for events.amazonaws.com; the target's action; sqs:SendMessage on the dead-letter queue; the target's key actions if the target is encrypted. See The delivery role
Attach an event sourceThe event source owner's identity, the dead-letter queue, and the keyevents:CreateEventSource on the bus and on the event source; a queue policy allowing events.amazonaws.com sqs:SendMessage on the dead-letter queue; if the bus is encrypted, the key policy allows events.amazonaws.com. See Event sources for a Custom Event Bus
Administer a busThe bus owner's identityevents:CreateEventBus, events:UpdateEventBus, events:DeleteEventBus, events:PutResourcePolicy, events:GetResourcePolicy, events:DeleteResourcePolicy, events:ListResourcePolicies, events:RevokeResource; ram:CreateResourceShare and related Amazon RAM actions to share it
Encrypt a bus with your own keyThe key policyThe bus creator's identity needs kms:DescribeKey; that identity, every producer and subscriber owner, and the events.amazonaws.com principal need kms:Decrypt, kms:Encrypt, kms:GenerateDataKeyWithoutPlaintext, kms:ReEncryptFrom, and kms:ReEncryptTo, scoped to the bus with the aws:events:event-busv2:arn encryption context. See Writing the key policy

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.