I am trying to create a network with the following features in AWS:
- A private subnet with one EC2 instance, called 'Traffic Source'
- All HTTP(S) traffic from the Traffic Source subnet destined for 0.0.0.0/0 is routed to an AWS Elastic Load Balancer
- The AWS Elastic Load Balancer routes traffic to an Auto-scaling group
- The Auto-scaling Group has a standard NAT Machine Image as its Launch Profile
- All HTTP(S) originating from the Auto-scaling Group, destined for 0.0.0.0/0 is routed to an Internet Gateway
I'm having trouble with configuring the route for Step 2, above: routing 0.0.0.0/0 traffic from the Traffic Source to the Load Balancer. Route Tables in AWS, as far as I know, only take a single IP address in CIDR format or a resource ID.
AWS Elastic Load Balancers of course have several IP addresses, a canonical DNS name and no resource ID.
How can I route traffic from a private subnet in AWS VPC to an internal AWS Elastic Load Balancer using the Route Tables feature in AWS?
Due to internal constraints at my organization, the new NAT Gateway product at AWS is not an option I can use.