turbot/steampipe-mod-aws-compliance

Control: Elasticsearch domain node-to-node encryption should be enabled

Description

Ensure node-to-node encryption for AWS Elasticsearch Service is enabled. Node-to-node encryption enables TLS 1.2 encryption for all communications within the AWS Virtual Private Cloud (AWS VPC).

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.es_domain_node_to_node_encryption_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.es_domain_node_to_node_encryption_enabled --share

SQL

This control uses a named query:

select
arn as resource,
case
when region = any(array['af-south-1', 'eu-south-1', 'cn-north-1', 'cn-northwest-1']) then 'skip'
when not enabled then 'alarm'
else 'ok'
end as status,
case
when region = any(array['af-south-1', 'eu-south-1', 'cn-north-1', 'cn-northwest-1']) then title || ' node-to-node encryption not supported in ' || region || '.'
when not enabled then title || ' node-to-node encryption disabled.'
else title || ' node-to-node encryption enabled.'
end as reason
, region, account_id
from
aws_elasticsearch_domain;

Tags