AWS Security ChangesHomeSearch

AWS vpc-lattice: VPC Lattice resource config: private DNS and hosted zone reuse docs

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

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

Summary

Restructures headings and bullet lists (converting resource-configuration types into headings), fixes typos/curly apostrophes, and adds substantial new content: an 'Update private DNS settings' section, a 'Private hosted zone reuse' section, and a 'Differences between connection types' table. It also clarifies that a resource configuration cannot be reached through both a resource endpoint and a service-network endpoint when private DNS is enabled, and documents PrivateDnsAlreadyExists DNS-conflict behavior and private hosted zone scoping.

Security assessment

The added text documents security-relevant DNS behavior: private hosted zones created by VPC Lattice answer for every name under a domain in the VPC, which can shadow/redirect resolution of other names, and it advises enabling private DNS only for domains whose traffic should route through VPC Lattice. It also documents domain-claim conflicts (PrivateDnsAlreadyExists) and that the first endpoint to claim a domain keeps the DNS record, which affects who can control name resolution. No specific vulnerability, CVE, or incident is referenced, so this is hardening/guidance rather than a fix.

Evidence

+A private hosted zone that VPC Lattice creates for a domain answers for every name under that domain in your VPC. For example, a private hosted zone for example.com stops other example.com names from resolving in that VPC. Enable private DNS only for domains whose traffic you want to route through VPC Lattice.

Diff

diff --git a/vpc-lattice/latest/ug/resource-configuration.md b/vpc-lattice/latest/ug/resource-configuration.md
index 19b9141..30ebecf 100644
--- a//vpc-lattice/latest/ug/resource-configuration.md
+++ b//vpc-lattice/latest/ug/resource-configuration.md
@@ -13 +13 @@ A resource configuration represents an individual resource, a group of resources
-###### Contents
+## Contents
@@ -54 +54 @@ A resource configuration can be of several types. The different types help repre
-  * **Single resource configuration** : Represents an IP address or a domain name. It can be shared independently.
+Single resource configuration
@@ -56 +55,0 @@ A resource configuration can be of several types. The different types help repre
-  * **Group resource configuration** : It is collection of child resource configurations. It can be used to represent a group of DNS and IP address endpoints.
@@ -58 +57 @@ A resource configuration can be of several types. The different types help repre
-  * **Child resource configuration** : It is a member of a group resource configuration. It represents an IP address or a domain name. It can’t be shared independently; it can only be shared as part of a group. It can be added and removed from a group. When added, its automatically accessible to those who can access the group.
+Represents an IP address or a domain name. It can be shared independently.
@@ -60 +59 @@ A resource configuration can be of several types. The different types help repre
-  * **ARN resource configuration** : Represents a supported resource-type that is provisioned by an AWS service. Any group-child relationship is automatically taken care of. It can be shared independently.
+Group resource configuration
@@ -62 +60,0 @@ A resource configuration can be of several types. The different types help repre
-  * **CIDR resource configuration** : A list of CIDR ranges. It can be shared independently.
@@ -63,0 +62 @@ A resource configuration can be of several types. The different types help repre
+It is a collection of child resource configurations. It can be used to represent a group of DNS and IP address endpoints.
@@ -64,0 +64 @@ A resource configuration can be of several types. The different types help repre
+Child resource configuration
@@ -66,0 +67,12 @@ A resource configuration can be of several types. The different types help repre
+It is a member of a group resource configuration. It represents an IP address or a domain name. It can't be shared independently; it can only be shared as part of a group. It can be added and removed from a group. When added, it's automatically accessible to those who can access the group.
+
+ARN resource configuration
+    
+
+Represents a supported resource-type that is provisioned by an AWS service. Any group-child relationship is automatically taken care of. It can be shared independently.
+
+CIDR resource configuration
+    
+
+A list of CIDR ranges. It can be shared independently.
+
@@ -77 +89 @@ For CIDR resource configurations, specify `TCP_UDP` so that you can send DNS que
-###### Note
+Note
@@ -83 +95 @@ The `TCP_UDP` protocol applies only to CIDR resource configurations, which you a
-A resource configuration is associated with a resource gateway. A resource gateway is a set of ENIs that serve as a point of ingress into the VPC in which the resource is in. Multiple resource configurations can be associated with the same resource gateway. When clients in other VPCs or accounts access a resource in your VPC, the resource sees traffic coming locally from the resource gateway's IP addresses in that VPC.
+A resource configuration is associated with a resource gateway. A resource gateway is a set of ENIs that serve as a point of ingress into the VPC that the resource is in. Multiple resource configurations can be associated with the same resource gateway. When clients in other VPCs or accounts access a resource in your VPC, the resource sees traffic coming locally from the resource gateway's IP addresses in that VPC.
@@ -97 +109 @@ The following considerations apply to providers of resource configurations:
-  * You can verify your custom domain name using the domain name verification process in VPC Lattice. For more information For more information, see [Create and verify a domain](./create-and-verify.html).
+  * You can verify your custom domain name using the domain name verification process in VPC Lattice. For more information, see [Create and verify a domain](./create-and-verify.html).
@@ -99 +111 @@ The following considerations apply to providers of resource configurations:
-  * For resource configurations of type group and child, you must first specify a group domain on the group resource configuration. After, the child resource configurations can have custom domains that are subdomains of the group domain. If the group doesn’t have a group domain, you can use any custom domain name for the child, but VPC Lattice will not provision any hosted zones for the child domain names in the resource consumer’s VPC. 
+  * For resource configurations of type group and child, you must first specify a group domain on the group resource configuration. Afterward, the child resource configurations can have custom domains that are subdomains of the group domain. If the group doesn't have a group domain, you can use any custom domain name for the child, but VPC Lattice will not provision any hosted zones for the child domain names in the resource consumer's VPC. 
@@ -120 +132 @@ VPC Lattice provisions private hosted zones for all custom domain names.
-VPC Lattice provisions a private hosted zone only if custom domain name has been verified by the provider.
+VPC Lattice provisions a private hosted zone only if the custom domain name has been verified by the provider.
@@ -140 +152 @@ The following considerations apply to consumers of resource configurations:
-  * The private DNS enabled parameter cannot be changed. 
+  * You can enable or disable private DNS after you create the endpoint or VPC association. The change applies only to resource configurations connected afterward. Before you enable private DNS, turn on the `enableDnsHostnames` and `enableDnsSupport` attributes for your VPC. VPC Lattice doesn't check these attributes when you update the endpoint or VPC association, so the update succeeds, but names don't resolve until both attributes are on. For more information, see Update private DNS settings.
@@ -142 +154 @@ The following considerations apply to consumers of resource configurations:
-  * Private DNS should be enabled on a service network resource association for private hosted to be created in a VPC. For a resource configuration, the private DNS enabled status of the service network resource association overrides the private DNS enabled status of either the service network endpoint or service network VPC association.
+  * Private DNS should be enabled on a service network resource association for private hosted zones to be created in a VPC. For a resource configuration, the private DNS enabled status of the service network resource association overrides the private DNS enabled status of either the service network endpoint or service network VPC association.
@@ -164,0 +177,45 @@ For resource configurations of type ARN, VPC Lattice does not create a private h
+### Update private DNS settings
+
+After you create a resource VPC endpoint, service-network VPC endpoint, or service network VPC association, you can enable or disable private DNS, change its private DNS preference, and change its private DNS specified domains. To update a resource VPC endpoint or service-network VPC endpoint, use the `modify-vpc-endpoint` command. To update a service network VPC association, use the `update-service-network-vpc-association` command.
+
+The new settings apply only to resource configurations that are connected after you make the change. Resource configurations that are already connected keep working, and their existing DNS records don't change. To apply new settings to a resource configuration that's already connected, reconnect it: delete and re-create the endpoint or VPC association, or, for a service network, the service network owner can remove the resource configuration from the service network and add it back. Both interrupt connectivity to the resource configuration. For a resource VPC endpoint to a single resource configuration, an update doesn't take effect, so re-create the endpoint with the settings you want. For a resource VPC endpoint to a group resource configuration, each child resource configuration added to the group afterward uses the endpoint's current settings.
+
+Updates to a resource VPC endpoint or service-network VPC endpoint are applied during the call. Updates to a service network VPC association are asynchronous, and the association status is `UPDATE_IN_PROGRESS` until the update completes. You can update security groups and private DNS settings in the same request.
+
+When you update a resource VPC endpoint or service-network VPC endpoint, DNS options that you leave out don't change, with these exceptions. If you specify a private DNS preference without specified domains, the list of specified domains is cleared. If you specify domains without a preference, the update has no effect and the current settings stay. If you turn on private DNS without DNS options, the preference is set to `VERIFIED_DOMAINS_ONLY` with the specified domain `*`. If you turn off private DNS, the preference and the specified domains are cleared.
+
+For a group resource configuration, specify a wildcard for the group domain as a private DNS specified domain, for example, `*.example.com`. If you specify only the child domain names, or only the group domain, VPC Lattice doesn't create private DNS records for the group. For a single resource configuration, specify its custom domain name or a wildcard that covers it. A wildcard such as `*.example.com` matches example.com and every name under it.
+
+A private hosted zone that VPC Lattice creates for a domain answers for every name under that domain in your VPC. For example, a private hosted zone for example.com stops other example.com names from resolving in that VPC. Enable private DNS only for domains whose traffic you want to route through VPC Lattice.
+
+### Private hosted zone reuse
+
+If VPC Lattice already created a private hosted zone in your VPC for the group domain of a group resource configuration, and you connect another group resource configuration with the same group domain through another resource VPC endpoint, service-network VPC endpoint, or service network VPC association, VPC Lattice reuses the existing private hosted zone and adds records for the new child resource configurations to it. VPC Lattice creates records only for child domain names, not for the group domain itself. You can then access multiple group resource configurations that share a group domain (for example, several groups under example.com) from the same VPC. Reuse applies only to group resource configurations.
+
+VPC Lattice keeps a shared private hosted zone until the last endpoint or VPC association that uses it is deleted. A connection's records are removed when its resource configuration is disconnected or the connection is deleted.
+
+Reuse applies to different child domain names under the same group domain. If two endpoints or VPC associations in the same VPC claim the same domain name, the first one keeps the DNS record. On the second connection, only the resource configuration with that name fails and is unreachable, and its other resource configurations work. If the connection that holds the record is deleted, the other connection doesn't take it over. To get the record, re-create the other connection. For resource VPC endpoints and service-network VPC endpoints, `describe-vpc-endpoint-associations` shows `PrivateDnsAlreadyExists` for the resource configuration that failed.
+
+If a private hosted zone that you own for the same domain is associated with the VPC, VPC Lattice reports `PrivateDnsAlreadyExists` for that domain and doesn't change your private hosted zone. To keep using your own private hosted zone, exclude the domain from the private DNS settings before you connect. Then, in your private hosted zone, create a record for each resource configuration that maps its custom domain name (for example, db.example.com) to the endpoint-specific domain name that VPC Lattice generates for that resource configuration (for example, `vpce-0123456789abcdef0-snra-0123456789abcdef0.rcfg-0123456789abcdef0.4x5y6z.vpc-lattice-rsc.us-east-1.on.aws`). Without this mapping, the custom domain name doesn't resolve to the endpoint. To find the generated domain names, use the `describe-vpc-endpoint-associations` command.
+
+A private hosted zone can contain up to 10,000 records (Route 53 quota). For service-network VPC endpoints, this is about 1,000 domain names per domain in a VPC. The exact number depends on the number of Availability Zones.
+
+Connections that failed with `PrivateDnsAlreadyExists` before reuse was available aren't retried. To get private DNS for them, re-create the connection.
+
+### Differences between connection types
+
+You can connect to resource configurations through a resource VPC endpoint, a service-network VPC endpoint, or a service network VPC association. The following table shows how they differ when you update them.
+
+Characteristic | Resource VPC endpoint | Service-network VPC endpoint | Service network VPC association  
+---|---|---|---  
+Connects to | One resource configuration (single, group, or ARN) | A service network | A service network  
+Update API | `ModifyVpcEndpoint` (Amazon EC2) | `ModifyVpcEndpoint` (Amazon EC2) | `UpdateServiceNetworkVpcAssociation` (VPC Lattice)  
+When the update is applied | During the call | During the call | Asynchronously. Status is `UPDATE_IN_PROGRESS` until it completes  
+Updating DNS options | `--dns-options`. Options you leave out don't change, except that a preference without specified domains clears the domain list | Same as resource VPC endpoint | `--dns-options` together with `--private-dns-enabled`. Omitted options reset to defaults  
+Applying new DNS settings to resource configurations that are already connected | Single resource configuration: the update never applies, so re-create the endpoint. Group: each child added afterward uses the endpoint's current settings | Re-create the endpoint, or the service network owner removes the resource configuration and adds it back | Re-create the VPC association, or the service network owner removes the resource configuration and adds it back  
+Service network owner's private DNS setting | Not applicable (no service network) | Can only turn private DNS off for a resource configuration, never on. Doesn't apply to ARN (Amazon RDS) resource configurations | Same as service-network VPC endpoint  
+Same-name DNS conflicts reported | Yes: `describe-vpc-endpoint-associations` shows `PrivateDnsAlreadyExists` | Yes: same as resource VPC endpoint | Not reported per resource today. To check, resolve the name from an instance in the VPC  
+Subnets | Chosen at creation | Chosen at creation. Add only, in a separate request | You don't choose subnets  
+Security groups | Can be updated | Can be updated | Can be updated, but you can't remove all of them  
+DNS options field names | `PrivateDnsPreference`, `PrivateDnsSpecifiedDomains` (0-10 domains) | Same as resource VPC endpoint | `privateDnsPreference`, `privateDnsSpecifiedDomains` (1-10 domains)  
+  
@@ -169 +226 @@ The private DNS enabled property of the service network resource association ove
-If a service network owner creates a service network resource association and doesn't enable private DNS, VPC Lattice won’t provision private hosted zones for that resource configuration in any VPCs that the service network is connected to, even though private DNS is enabled on the service network endpoint or service network VPC associations. 
+If a service network owner creates a service network resource association and doesn't enable private DNS, VPC Lattice won't provision private hosted zones for that resource configuration in any VPCs that the service network is connected to, even though private DNS is enabled on the service network endpoint or service network VPC associations. 
@@ -211 +268 @@ For more information on service network VPC endpoints, see [Access service netwo
-When private DNS is enabled for your VPC, you can’t create a resource endpoint and service network endpoint for the same resource configuration.
+When private DNS is enabled for your VPC, you can't access the same resource configuration through both a resource endpoint and a service-network endpoint in that VPC. The first endpoint to claim the domain name keeps the DNS record, and the association for the second endpoint fails. For more information, see Private hosted zone reuse. To access the resource configuration through both, turn off private DNS on one of them before you connect it, and use its VPC Lattice-generated DNS name.
@@ -219 +276 @@ To access a resource configuration through a service network, Account-B would ha
-In order to prevent such transitive sharing, you can specify that your resource configuration cannot be added to service networks that are shareable between accounts. If you specify this, then Account-B won’t be able to add your resource configuration to service networks that are shared or can be shared with another account in the future.
+In order to prevent such transitive sharing, you can specify that your resource configuration cannot be added to service networks that are shareable between accounts. If you specify this, then Account-B won't be able to add your resource configuration to service networks that are shared or can be shared with another account in the future.
@@ -246 +303 @@ Use the AWS RAM console, to view the resource shares to which you have been adde
-To access a resource from another VPC in the same account as the resource configuration, you don’t need to share the resource configuration through AWS RAM.
+To access a resource from another VPC in the same account as the resource configuration, you don't need to share the resource configuration through AWS RAM.