AWS vpc-lattice: VPC Lattice: document updating private DNS and security groups for VPC associations
Summary
Adds AWS CLI examples for updating a service network VPC association's private DNS preference (SPECIFIED_DOMAINS_ONLY with privateDnsSpecifiedDomains, and disabling private DNS), clarifies that private DNS can be set on create or update, fixes heading level and several typos, and adds cross-links to connection-type differences.
Security assessment
The substantive additions describe how to change or disable private DNS resolution (private hosted zones) for VPC associations and reference editing security groups; this is network/DNS configuration guidance with security-adjacent impact, but there is no indication of a fixed vulnerability, CVE, or incident, and the rest of the diff is editorial (typo and heading fixes).
Evidence
+The following example disables private DNS for a VPC association. Resource configurations connected after this change don't get private DNS records in the VPC. Existing records stay until the resource configuration is disconnected or the VPC association is deleted.
Diff
diff --git a/vpc-lattice/latest/ug/service-network-associations.md b/vpc-lattice/latest/ug/service-network-associations.md index 2dcd01d..60eab67 100644 --- a//vpc-lattice/latest/ug/service-network-associations.md +++ b//vpc-lattice/latest/ug/service-network-associations.md @@ -15 +15 @@ 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. @@ -17 +17 @@ If a service network owner creates a service network resource association and do -###### Contents +## Contents @@ -118 +118 @@ Associating a VPC is an optional step when you create a service network. Network -When you create a VPC association to a resource configuration, you can specify the private DNS preference. This preference allows VPC Lattice to provision private hosted zones on the resource consumer's behalf. For more information, see [Custom domain names for resource providers](./resource-configuration.html#custom-domain-name-resource-providers). +When you create or update a VPC association, you can specify the private DNS preference. This preference allows VPC Lattice to provision private hosted zones on the resource consumer's behalf. For more information, see [Custom domain names for resource consumers](./resource-configuration.html#custom-domain-name-resource-consumers). @@ -120 +120 @@ When you create a VPC association to a resource configuration, you can specify t -When you a delete a VPC association, clients in the VPCs can no longer connect to services in the service network. +When you delete a VPC association, clients in the VPCs can no longer connect to services in the service network. @@ -152 +152 @@ If you choose **All domains** , VPC Lattice provisions a private hosted zone for - 6. To edit the security groups for an association, select the check box for the association and then chose **Actions** , **Edit security groups**. Add and remove security groups as needed. + 6. To edit the security groups for an association, select the check box for the association and then choose **Actions** , **Edit security groups**. Add and remove security groups as needed. @@ -163 +163 @@ Use the [create-service-network-vpc-association](https://docs.aws.amazon.com/cli -###### To update the security groups for a VPC association using the AWS CLI +###### To update the security groups or private DNS settings for a VPC association using the AWS CLI @@ -166,0 +167,15 @@ Use the [update-service-network-vpc-association](https://docs.aws.amazon.com/cli +The following example changes the private DNS preference so that VPC Lattice provisions private hosted zones only for domains that match `*.example.com`. When you specify `--dns-options`, also specify `--private-dns-enabled` and every DNS option that you want to keep. Options that you omit are reset to their defaults. + + + aws vpc-lattice update-service-network-vpc-association \ + --service-network-vpc-association-identifier snva-0123456789abcdef0 \ + --private-dns-enabled \ + --dns-options '{"privateDnsPreference":"SPECIFIED_DOMAINS_ONLY","privateDnsSpecifiedDomains":["*.example.com"]}' + +The following example disables private DNS for a VPC association. Resource configurations connected after this change don't get private DNS records in the VPC. Existing records stay until the resource configuration is disconnected or the VPC association is deleted. + + + aws vpc-lattice update-service-network-vpc-association \ + --service-network-vpc-association-identifier snva-0123456789abcdef0 \ + --no-private-dns-enabled + @@ -170,0 +186,2 @@ Use the [delete-service-network-vpc-association](https://docs.aws.amazon.com/cli +For how resource VPC endpoints, service-network VPC endpoints, and service network VPC associations differ when you update them, see [Differences between connection types](./resource-configuration.html#differences-between-connection-types). + @@ -175 +192 @@ Clients can send requests to services and resources specified in resource config -When you create a VPC association to a resource configuration, you can specify the private DNS preference. This preference allows VPC Lattice to provision private hosted zones on the resource consumer's behalf. For more information, see [Custom domain names for resource providers](./resource-configuration.html#custom-domain-name-resource-providers). +When you create or update a service-network VPC endpoint, you can specify the private DNS preference. This preference allows VPC Lattice to provision private hosted zones on the resource consumer's behalf. To update an existing service-network VPC endpoint, use the `modify-vpc-endpoint` command. For more information, see [Custom domain names for resource consumers](./resource-configuration.html#custom-domain-name-resource-consumers). @@ -215 +232,3 @@ When you create a VPC association to a resource configuration, you can specify t -To learn more about VPC endpoint to how to connect to service networks, see [Access service networks](https://docs.aws.amazon.com/vpc/latest/privatelink/privatelink-access-service-networks.html) in the _AWS PrivateLink user guide_. +To learn more about how to use a VPC endpoint to connect to service networks, see [Access service networks](https://docs.aws.amazon.com/vpc/latest/privatelink/privatelink-access-service-networks.html) in the _AWS PrivateLink user guide_. + +For how resource VPC endpoints, service-network VPC endpoints, and service network VPC associations differ when you update them, see [Differences between connection types](./resource-configuration.html#differences-between-connection-types).