Create Endpoint

Create a VPC Endpoint in the NP1 VPC

If you deployed the NLB to new subnets you will not have a route from NP1 to note: actually, traffic would try to use the default route path ( 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.

  1. In the AWS Management Console choose Services then select VPC.

  2. 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.

  3. In the main pane, click the Create Endpoint button.

  4. For Service category, select Find service by name.

  5. 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.

  6. For VPC select the VPC with NP1 in the name.

  7. 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.

  8. 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 ( to TCP port 80 (HTTP).

  9. Click the Create endpoint button at the bottom of the page.

  10. 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*.

Create a familiar name in DNS for the Endpoint

Several DNS names will be created for the Endpoint. They will start with vpce and end with 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.

  1. 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.

  2. In the AWS Management Console choose Services then select Route 53.

  3. 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.

  4. From the list of Hosted Zones click on the Domain Name of the… domain

  5. In the main panel, click the Create Record Set button.

  6. In the right-hand panel, enter a name for the Endpoint such as web. This will be appended by the np1. domain

  7. Set Alias to Yes.

  8. for Alias Target, paste the DNS name recorded in the first step above, and then select the value from the list.