turbot/terraform_azure_compliance

Query: automation_account_variables_encryption_enabled

Usage

powerpipe query terraform_azure_compliance.query.automation_account_variables_encryption_enabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'encrypted') = 'true' then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'encrypted') = 'true' then ' encryption enabled'
else ' encryption disabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type in ('azurerm_automation_variable_bool', 'azurerm_automation_variable_string', 'azurerm_automation_variable_int', 'azurerm_automation_variable_datetime');

Controls

The query is being used by the following controls: