turbot/terraform_azure_compliance

Query: network_interface_ip_forwarding_disabled

Usage

powerpipe query terraform_azure_compliance.query.network_interface_ip_forwarding_disabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'enable_ip_forwarding')::boolean then 'alarm'
else 'ok'
end as status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'enable_ip_forwarding')::boolean then ' network interface enabled with IP forwarding'
else ' network interface disabled with IP forwarding'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_network_interface'

Controls

The query is being used by the following controls: