turbot/terraform_azure_compliance

Query: cosmosdb_use_virtual_service_endpoint

Usage

powerpipe query terraform_azure_compliance.query.cosmosdb_use_virtual_service_endpoint

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'virtual_network_rule') is null then 'alarm'
when (attributes_std -> 'virtual_network_rule' ->> 'id') is not null then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'virtual_network_rule') is null then ' ''virtual_network_rule'' not defined'
when (attributes_std -> 'virtual_network_rule' ->> 'id') is not null then ' configured with virtual network service endpointle'
else ' not configured with virtual network service endpoint'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_cosmosdb_account';

Controls

The query is being used by the following controls: