turbot/aws_insights

Query: eventbridge_buses_for_eventbridge_rule

Usage

powerpipe query aws_insights.query.eventbridge_buses_for_eventbridge_rule

SQL

select
b.arn as eventbridge_bus_arn
from
aws_eventbridge_rule r
join aws_eventbridge_bus b on b.name = r.event_bus_name
where
r.arn = $1
and b.region = split_part($1, ':', 4)
and b.account_id = split_part($1, ':', 5)