turbot/aws_insights

Query: s3_buckets_for_sqs_queue

Usage

powerpipe query aws_insights.query.s3_buckets_for_sqs_queue

Steampipe Tables

SQL

select
b.arn as bucket_arn
from
aws_s3_bucket as b,
jsonb_array_elements(event_notification_configuration -> 'QueueConfigurations') as q
where
event_notification_configuration -> 'QueueConfigurations' <> 'null'
and q ->> 'QueueArn' = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);