turbot/terraform_azure_compliance

Query: cosmosdb_account_encryption_at_rest_using_cmk

Usage

powerpipe query terraform_azure_compliance.query.cosmosdb_account_encryption_at_rest_using_cmk

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'key_vault_key_id') is not null then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'key_vault_key_id') is not null then ' encrypted at rest using CMK'
else ' not encrypted at rest using CMK'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_cosmosdb_account';

Controls

The query is being used by the following controls: