If you deployed the NLB to new subnets you will not have a route from NP1 to 100.64.0.0/12. note: actually, traffic would try to use the default route path (0.0.0.0/0) and make it as far as the NAT Gateway in the DCS1 VPC. At which point it will have no where to go, as it is not publicly routable on the internet.
In the AWS Management Console choose Services then select VPC.
From the menu on the left, Scroll down and select Endpoints. Endpoints allow us to connect our VPC to another service. In the previous section we created an endpoint to an AWS service. Now we will connect to our own Endpoint Service.
In the main pane, click the Create Endpoint button.
For Service category, select Find service by name.
For Service Name, paste the name recorded in the final step of the last module. *note: this is found in the Endpoint Service Details. Click Verify. In a few seconds, you should see Service name found.
For VPC select the VPC with NP1 in the name.
Subnets options will now show up. Be sure to select the *Priv** subnets for each Availability Zone. Even though the Endpoint Service is available in every Availability Zone, the NP1 VPC is only in two, so we only have two.
For Security Group, select the security group with NP1 and Web in the name. This Security Group was created by the cloudformation template and allows traffic from any internal IP (10.0.0.0/8) to TCP port 80 (HTTP).
Click the Create endpoint button at the bottom of the page.
After a few minutes the Status of the endpoint will change from pending to available. *note: an easy way to find the endpoint in the list is to sort by Creation time by clicking the gray bar at the top of the Endpoints page*.
Several DNS names will be created for the Endpoint. They will start with vpce and end with amazonaws.com. The first one listed under DNS Names in the Details tab will return an Interface IP address for each Availability Zone that is active. The other names will be Availability zone specific and include the availability zone in the name, such as us-west2a or us-west-2b. These only return 1 IP address for that Availability Zone.
Lets create a more friendly name.
From the details of the Endpoint note (or copy) the first DNS Name listed. *note: don’t include the ZoneID listed in parenthesis or any spaces*We will reference this as a DNS alias a few steps down.
In the AWS Management Console choose Services then select Route 53.
From the menu on the left, Scroll down and select Hosted Zones. Hosted Zones are the Domains and Subdomains for our DNS. The Zones for each of our VPCs are Private and are only available in our internal network.
From the list of Hosted Zones click on the Domain Name of the np1.aws… domain
In the main panel, click the Create Record Set button.
In the right-hand panel, enter a name for the Endpoint such as web. This will be appended by the np1. domain
Set Alias to Yes.
for Alias Target, paste the DNS name recorded in the first step above, and then select the value from the list.