turbot/terraform_azure_compliance

Query: keyvault_key_expiration_set

Usage

powerpipe query terraform_azure_compliance.query.keyvault_key_expiration_set

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'expiration_date') is null then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'expiration_date') is null then ' expiration_date not set'
else ' expiration_date is set'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_key_vault_key';

Controls

The query is being used by the following controls: