turbot/terraform_aws_compliance

Query: vpc_ec2_transit_gateway_auto_accept_attachment_requests_disabled

Usage

powerpipe query terraform_aws_compliance.query.vpc_ec2_transit_gateway_auto_accept_attachment_requests_disabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'auto_accept_shared_attachments') = 'enable' then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'auto_accept_shared_attachments') = 'enable' then ' automatically accept VPC attachment requests'
else ' do not automatically accept VPC attachment requests'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_ec2_transit_gateway';

Controls

The query is being used by the following controls: