turbot/steampipe-mod-aws-compliance

Control: EventBridge custom event buses should have a resource-based policy attached

Description

This control checks if an Amazon EventBridge custom event bus has a resource-based policy attached. This control fails if the custom event bus doesn't have a resource-based policy..

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.eventbridge_custom_bus_resource_based_policy_attached

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.eventbridge_custom_bus_resource_based_policy_attached --share

SQL

This control uses a named query:

select
arn as resource,
case
when name = 'default' then 'skip'
when policy_std is not null then 'ok'
else 'alarm'
end as status,
case
when name = 'default' then title || ' is default event bus.'
when policy_std is not null then title || ' has resource based policy attached.'
else title || ' does not have resource based policy attached.'
end as reason
, region, account_id
from
aws_eventbridge_bus;

Tags