Amazon VPC – How to Access Internal ELB from a Peered VPC

amazon-vpcamazon-web-servicesinternal-dnsnetworkingrouting

I have two AWS VPCs in the same region. VPC A has an internal ELB that routes to my application. VPC B has resources that need access to this application. The VPCs are peered, with routing tables having routes that point to each others' main CIDR block.

Currently, I can access the ELB from instances in the same VPC A, but not yet from those in VPC B.

How do I set up DNS and routing so that the resources in VPC B can resolve and access this ELB?

Best Answer

You could directly use the DNS name of the internal load balancer.

The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can only route requests from clients with access to the VPC for the load balancer.

You could also create a CNAME record in Route53 (or other DNS service) if you'd like to name it something different.

If the routes are correct for your VPC peer, your application (VPC B) will be able to resolve and reach the application in VPC A.

Make sure you add entries in the Internal Load Balancers Security Group(s) to allow traffic from VPC B

References

Internal Load Balancers
VPC Peering Security Groups

Related Topic