Manage associations for a VPC Lattice resource configuration
Consumer accounts with which you share a resource configuration with and clients in your account can access the resource configuration either directly using a VPC endpoint of type resource or through a VPC endpoint of type service-network. As a result, your resource configuration will have endpoint associations and service network associations.
Manage service network resource associations
Create or delete a service network association.
Note
If you receive an access-denied message while creating the association between the service network and resource configuration, check your AWS RAM policy version and ensure that it is version 2. For more information, see the AWS RAM user guide.
To manage a service-network association using the console
Open the Amazon VPC console at https://console.aws.amazon.com/vpc/
. -
In the navigation pane, under PrivateLink and Lattice, choose Resource configurations.
-
Select the name of the resource configuration to open its details page.
-
Select Service network associations tab.
-
Choose Create associations.
-
Select a service network from VPC Lattice service networks. To create a service network, choose Create a VPC Lattice network.
-
(Optional) To add a tag, expand Service association tags, choose Add new tag, and enter a tag key and tag value.
-
(Optional) To enable private DNS names for this service network resource association choose enable private DNS name. For more information, see Custom domain names for service network owners.
-
Choose Save changes.
-
To delete an association, select the check box for the association and then choose Actions, Delete. When prompted for confirmation, enter
confirmand then choose Delete.
To create a service network association using the AWS CLI
Use the create-service-network-resource-association command.
To delete a service network association using the AWS CLI
Use the delete-service-network-resource-association command.
Manage resource VPC endpoint associations
Consumer accounts with access to your resource configuration or clients in your account can access the resource configuration using a resource VPC endpoint. If your resource configuration has a custom domain name, you can use enable private DNS to allow VPC Lattice to provision private hosted zones for your resource endpoint or service-network endpoint. With this, clients can directly curl the domain name to access the resource configuration. For more information, see Custom domain names for resource consumers.
To create a VPC endpoint association using the AWS CLI
Use the create-vpc-endpoint command.
To delete a VPC endpoint association using the AWS CLI
Use the delete-vpc-endpoint command.