turbot/terraform_azure_compliance

Query: storage_sync_private_link_used

Usage

powerpipe query terraform_azure_compliance.query.storage_sync_private_link_used

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'incoming_traffic_policy') is null then 'alarm'
when (attributes_std ->> 'incoming_traffic_policy') = 'AllowAllTraffic' then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'incoming_traffic_policy') is null then ' does not use private link'
when (attributes_std ->> 'incoming_traffic_policy') = 'AllowAllTraffic' then ' uses public networks'
else ' uses private link'
end || '.' reason,
path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_storage_sync';

Controls

The query is being used by the following controls: