0

I am making calls from an ec2 instance to a third party web service (over which I have no control). I would like to be able to scale horizontally, so that I can make these calls from multiple ec2 instances, but the web service I'm calling whitelists my IP, and for the sake of discussion let's assume I can't get another IP address whitelisted.

How can I send requests from 2+ machines that appear to the web service to be from the same IP address? Thanks!

Brad
  • 101
  • 1

2 Answers2

2

It sounds like you are really looking for some sort of NAT translation within EC2. I'm not sure if you can set this up with simple EC2 instances but I know they offer it as part of their VPC offering

Brent Pabst
  • 6,059
  • 2
  • 23
  • 36
1

You can create a proxy server and send requests through that proxy server to the web services server. Or VPC NAT is other option for you

Farhan
  • 4,210
  • 9
  • 47
  • 76
  • Thanks for the reply! Do you have any idea how to set up such a proxy server? We use apache for load-balancing internally (which I believe makes it a reverse proxy?), any idea if I can use apache to solve this problem? For example, a single apache box which has the whitelisted IP, and many boxes sending requests through that box to the 3rd-party service? – Brad Sep 20 '12 at 16:14