turbot/terraform_aws_compliance

Query: cloudsearch_domain_uses_latest_tls_version

Usage

powerpipe query terraform_aws_compliance.query.cloudsearch_domain_uses_latest_tls_version

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'endpoint_options' ->> 'tls_security_policy') = 'Policy-Min-TLS-1-2-2019-07' then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std -> 'endpoint_options' ->> 'tls_security_policy') = 'Policy-Min-TLS-1-2-2019-07' then ' uses latest TLS version'
else ' uses old TLS version'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_cloudsearch_domain';

Controls

The query is being used by the following controls: