Create a resource configuration in VPC Lattice
Create a resource configuration.
- AWS Management Console
To create a resource configuration 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.
-
Choose Create resource configuration.
-
Enter a name that is unique within your AWS account. You can't change this name after the resource configuration is created.
-
For Configuration type, choose Resource for a single or child resource or Resource group for a group of child resources.
-
Choose a resource gateway that you previously created or create a one now.
-
(Optional) To enter a custom domain name, do one of the following:
-
If you have a resource configuration of type single, you can enter a custom domain name. Resource consumers can use this domain name to access your resource configurations.
-
If you have a resource configuration of type group and child, you must first specify a group domain on the group resource configuration. Next, the child resource configurations can have custom domains that are subdomains of the group domain.
-
(Optional) Enter the verification ID.
Provide a verification ID if you want your domain name to be verified. This lets resource consumers know that you own the domain name.
-
Choose the identifier for the resource that you want this resource configuration to represent.
-
Choose the port ranges through which you want to share the resource.
-
For Association settings, specify whether this resource configuration can be associated with shareable service networks.
-
For Share resource configuration, choose the resource shares that identify the principals who can access this resource.
-
(Optional) For Monitoring, enable Resource access logs and the delivery destination if you want to monitor requests and responses to and from the resource configuration.
-
(Optional) To add a tag, choose Add new tag and enter the tag key and the tag value.
-
Choose Create resource configuration.
- AWS CLI
The following create-resource-configuration
command creates a single resource configuration and associates it with the custom domain name example.com.aws vpc-lattice create-resource-configuration \ --name my-resource-config \ --type SINGLE \ --resource-gateway-identifier rgw-0bba03f3d56060135 \ --resource-configuration-definition 'ipResource={ipAddress=10.0.14.85}' \ --custom-domain-name example.com \ --verification-id dv-aaaa0000000111111The following create-resource-configuration
command creates a group resource configuration and associates it with the custom domain name example.com.aws vpc-lattice-custom-dns create-resource-configuration \ --name my-custom-dns-resource-config-group \ --type GROUP \ --resource-gateway-identifier rgw-0bba03f3d56060135 \ --domain-verification-identifier dv-aaaa0000000111111The following create-resource-configuration
command creates a child resource configuration and associates it with the custom domain name child.example.com.aws vpc-lattice-custom-dns create-resource-configuration \ --name my-custom-dns-resource-config-child \ --type CHILD \ --resource-configuration-definition 'dnsResource={domainName=my-alb-123456789.us-west-2.elb.amazonaws.com,ipAddressType=IPV4}' \ --resource-configuration-group-identifier rcfg-07129f3acded87626 \ --custom-domain-name child.example.com