turbot/terraform_azure_compliance

Query: storage_account_queue_services_logging_enabled

Usage

powerpipe query terraform_azure_compliance.query.storage_account_queue_services_logging_enabled

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'queue_properties') is null
or (attributes_std -> 'queue_properties' -> 'logging') is null then 'alarm'
when not (
attributes_std -> 'queue_properties' -> 'logging' ->> 'Read'
) :: boolean
or not (
attributes_std -> 'queue_properties' -> 'logging' ->> 'Write'
) :: boolean
or not (
attributes_std -> 'queue_properties' -> 'logging' ->> 'Delete'
) :: boolean then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'queue_properties') is null
or (attributes_std -> 'queue_properties' -> 'logging') is null then ' blob service logging not enabled'
when not (
attributes_std -> 'queue_properties' -> 'logging' ->> 'Read'
) :: boolean
or not (
attributes_std -> 'queue_properties' -> 'logging' ->> 'Write'
) :: boolean
or not (
attributes_std -> 'queue_properties' -> 'logging' ->> 'Delete'
) :: boolean then ' blob service logging not enabled'
else ' blob service logging enabled'
end || '.' reason,
path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_storage_account';

Controls

The query is being used by the following controls: