turbot/aws_insights

Query: sns_topics_for_s3_bucket

Usage

powerpipe query aws_insights.query.sns_topics_for_s3_bucket

Steampipe Tables

SQL

select
t ->> 'TopicArn' as topic_arn
from
aws_s3_bucket as b,
jsonb_array_elements(
case jsonb_typeof(event_notification_configuration -> 'TopicConfigurations')
when 'array' then (event_notification_configuration -> 'TopicConfigurations')
else null end
)
as t
where
b.arn = $1;