turbot/aws_insights

Query: vpc_security_groups_for_rds_db_instance

Usage

powerpipe query aws_insights.query.vpc_security_groups_for_rds_db_instance

Steampipe Tables

SQL

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