Other Articles

OpenSearch Domain – Enable Node-to-Node Encryption

Secure Configuration Checks > AWS

This check ensures that node-to-node encryption is enabled for Amazon OpenSearch Service domains. With it, all traffic between the nodes of the domain is encrypted with TLS. Without it, data that moves inside the cluster, such as replicated documents and search requests, travels in clear text.

Check Details

  • Resource: OpenSearch Service Domain
  • Check: Enable OpenSearch domain node-to-node encryption (NodeToNodeEncryptionEnabled)
  • Risk: Anyone who can observe network traffic inside the VPC can read or capture data that moves between the nodes

Remediation via AWS Console

  1. Log in to the AWS Management Console and open the Amazon OpenSearch Service console.

    Amazon OpenSearch Service Console
  2. In the left navigation pane, click Domains and select the affected domain.
  3. Open the Security configuration tab and click Edit.

    OpenSearch domain security configuration tab
  4. Under Encryption, select Enable node-to-node encryption.

    Enable node-to-node encryption for an OpenSearch domain
  5. Click Save changes. Wait until the domain status is Active and the change is complete.
  6. Repeat steps 2 to 5 for every domain without node-to-node encryption.

Remediation via AWS CLI

  1. Log in to the AWS Management Console and click the CloudShell icon (>_) in the top-right corner.

    AWS CloudShell
  2. List the domains where node-to-node encryption is not enabled. The output shows the domain name and the setting:

    for d in $(aws opensearch list-domain-names \
      --query 'DomainNames[].DomainName' --output text); do
      aws opensearch describe-domain --domain-name "$d" \
        --query 'DomainStatus.[DomainName,NodeToNodeEncryptionOptions.Enabled]' \
        --output text
    done | awk '$2 != "True"'
    

    The command covers one region. Add --region <region> to each aws command to check another.

  3. Enable node-to-node encryption:

    aws opensearch update-domain-config \
    --domain-name <domain-name> \
    --node-to-node-encryption-options Enabled=true
    
  4. Check the progress. Wait until Processing is False:

    aws opensearch describe-domain \
    --domain-name <domain-name> \
    --query 'DomainStatus.Processing'
    
  5. Verify the setting:

    aws opensearch describe-domain \
    --domain-name <domain-name> \
    --query 'DomainStatus.NodeToNodeEncryptionOptions'
    

    Enabled must be true.

Replace <domain-name> with the name of the domain, for example my-search-domain. Repeat steps 3 to 5 for each domain that step 2 lists.

Updated on 04 November, 2026