turbot/aws_compliance

Query: opensearch_domain_https_required

Usage

powerpipe query aws_compliance.query.opensearch_domain_https_required

Steampipe Tables

SQL

select
arn as resource,
case
when (domain_endpoint_options ->> 'EnforceHTTPS' = 'false') or (domain_endpoint_options ->> 'EnforceHTTPS' = 'true' and domain_endpoint_options ->> 'TLSSecurityPolicy' not in ('tlsPolicies')) then 'alarm'
else 'ok'
end status,
case
when (domain_endpoint_options ->> 'EnforceHTTPS' = 'false') or (domain_endpoint_options ->> 'EnforceHTTPS' = 'true' and domain_endpoint_options ->> 'TLSSecurityPolicy' not in ('tlsPolicies')) then title || ' does not use HTTPS.'
else title || ' uses HTTPS.'
end as reason
, region, account_id
from
aws_opensearch_domain;

Controls

The query is being used by the following controls: