turbot/aws_insights

Query: lambda_functions_for_s3_bucket

Usage

powerpipe query aws_insights.query.lambda_functions_for_s3_bucket

Steampipe Tables

SQL

select
t ->> 'LambdaFunctionArn' as function_arn
from
aws_s3_bucket as b,
jsonb_array_elements(event_notification_configuration -> 'LambdaFunctionConfigurations') as t
where
event_notification_configuration -> 'LambdaFunctionConfigurations' <> 'null'
and b.arn = $1;