turbot/terraform_aws_compliance

Query: apigateway_domain_name_use_latest_tls

Usage

powerpipe query terraform_aws_compliance.query.apigateway_domain_name_use_latest_tls

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'security_policy') is null or (attributes_std ->> 'security_policy') = 'TLS_1_2' then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'security_policy') is null or (attributes_std ->> 'security_policy') = 'TLS_1_2' then ' uses latest TLS security policy'
else ' does not use latest TLS security policy'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_api_gateway_domain_name';

Controls

The query is being used by the following controls: