Control: API Gateway Domain should have latest TLS security policy configured
Description
This control checks whether the API Gateway Domain is configured with latest Transport Layer Security (TLS) version.
Usage
Run the control in your terminal:
powerpipe control run terraform_aws_compliance.control.apigateway_domain_name_use_latest_tls
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_aws_compliance.control.apigateway_domain_name_use_latest_tls --share
SQL
This control uses a named query:
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_linefrom terraform_resourcewhere type = 'aws_api_gateway_domain_name';