EventBridge custom event buses should have a resource-based policy attached
Identifier
eventbridge-attach-resource-based-policy
Category
Protect > Secure access management > Resource not publicly accessible
Description
This control checks whether Amazon EventBridge custom event buses have a resource-based policy attached using the aws_cloudwatch_event_bus_policy resource. Resource-based policies are essential for controlling who can send or receive events from your custom event bus, especially in cross-account scenarios.
Attaching a policy ensures that only explicitly authorized principals can interact with your event bus, helping to enforce least privilege and protect sensitive event data.
Non Compliant Example
Remediation
Use the aws_cloudwatch_event_bus_policy resource to attach a policy that defines access:
Extra Resources
- https://docs.aws.amazon.com/securityhub/latest/userguide/eventbridge-controls.html#eventbridge-3
- https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_bus_policy
- https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus-perms.html#eb-event-bus-permissions-manage