AWS Security ChangesHomeSearch

AWS vpc-lattice: Update private DNS CLI example to use --dns-options JSON

Service: vpc-lattice · 2026-11-17 · Documentation medium

File: vpc-lattice/latest/ug/resource-configuration-associations.md · Type: network

Summary

Replaces the deprecated --private-dns-preferences/--private-domains-set CLI flags with the --dns-options JSON structure (PrivateDnsPreference, PrivateDnsSpecifiedDomains) in the create-vpc-endpoint example, clarifies that private hosted zones are provisioned for verified domains and specified domains, and normalizes a Note heading.

Security assessment

The change documents how to configure private DNS on a VPC endpoint, which controls whether service names resolve privately inside the VPC versus over public DNS — a security-relevant configuration. It is a parameter/example correction (new --dns-options syntax) rather than a fix for a specific vulnerability, so it is security documentation with medium impact.

Evidence

+      --dns-options '{"PrivateDnsPreference":"VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS","PrivateDnsSpecifiedDomains":["example.com","example.org"]}'

Diff

diff --git a/vpc-lattice/latest/ug/resource-configuration-associations.md b/vpc-lattice/latest/ug/resource-configuration-associations.md
index aec1f1e..1330fa8 100644
--- a//vpc-lattice/latest/ug/resource-configuration-associations.md
+++ b//vpc-lattice/latest/ug/resource-configuration-associations.md
@@ -17 +17 @@ Create or delete a service network association.
-###### Note
+Note
@@ -81 +81 @@ AWS CLI
-The following [create-vpc-endpoint](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/create-vpc-endpoint.html) command creates a VPC endpoint that uses private DNS. The private DNS preferences are set to `VERIFIED_AND_SELECTED` and the selected domains are `example.com` and `example.org`. VPC Lattice only provisions private hosted zones for any verified domains or `example.com` or `example.org`.
+The following [create-vpc-endpoint](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/create-vpc-endpoint.html) command creates a VPC endpoint that uses private DNS. The private DNS preference is set to `VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS` and the specified domains are `example.com` and `example.org`. VPC Lattice only provisions private hosted zones for verified domains and for `example.com` and `example.org`.
@@ -90,2 +90 @@ The following [create-vpc-endpoint](https://awscli.amazonaws.com/v2/documentatio
-      --private-dns-preferences VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS \
-      --private-domains-set example.com, example.org
+      --dns-options '{"PrivateDnsPreference":"VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS","PrivateDnsSpecifiedDomains":["example.com","example.org"]}'