turbot/terraform_oci_compliance

Query: vcn_subnet_public_access_blocked

Usage

powerpipe query terraform_oci_compliance.query.vcn_subnet_public_access_blocked

Steampipe Tables

SQL

select
type || ' ' || name as resource,
case
when ((attributes_std ->> 'prohibit_public_ip_on_vnic') is not null and
(attributes_std ->> 'prohibit_public_ip_on_vnic')::boolean)
then 'ok'
else 'alarm'
end as status,
name || case
when ((attributes_std ->> 'prohibit_public_ip_on_vnic') is not null and
(attributes_std ->> 'prohibit_public_ip_on_vnic')::boolean)
then ' is not publicly accessible'
else ' is publicly accessible'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'oci_core_subnet';

Controls

The query is being used by the following controls: