turbot/terraform_azure_compliance

Query: storage_account_uses_latest_minimum_tls_version

Usage

powerpipe query terraform_azure_compliance.query.storage_account_uses_latest_minimum_tls_version

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'min_tls_version') in ('TLS1_2', 'TLS1_3') then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'min_tls_version') in ('TLS1_2', 'TLS1_3') then ' use latest version of TLS encryption'
when (attributes_std ->> 'min_tls_version') is null then ' version of TLS encryption is not set'
else ' does not uses latest version of TLS encryption'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_storage_account';

Controls

The query is being used by the following controls: