turbot/aws_insights

Query: vpc_security_groups_for_redshift_cluster

Usage

powerpipe query aws_insights.query.vpc_security_groups_for_redshift_cluster

Steampipe Tables

SQL

select
s ->> 'VpcSecurityGroupId' as security_group_id
from
aws_redshift_cluster,
jsonb_array_elements(vpc_security_groups) as s
where
arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);