5

I have an ELB. It has the address myelbname.eu-west-1.elb.amazonaws.com as one would expect.

I also have an EC2 instance behind that ELB. The load balancer is saying that the instance is healthy (the status is "In Service").

I can access the EC2 instance over IP on my network (using VPN to the VPC) but if I go to the A record of the load balancer in a browser then it can't be found.

Also, if I run nslookup it does show an IP address for the load balancer.

I've also tried adding a CNAME record and pointing it to the ELB's DNS name but that didn't work.

Piers Karsenbarg
  • 538
  • 3
  • 12
  • 24

2 Answers2

5

ELBs must be in a subnet with an internet gateway. Placing an ELB in a private subnet makes it only available within the VPC's network.

ceejayoz
  • 32,469
  • 7
  • 81
  • 105
0

Another option is VPN or DirectConnect connection. If you create VPN or DirectConnect connection to you vpc from your corporate network, then you will be able to access all the resources from the corporate network.