Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a good strategy for accessing an API which is limited to a static IP Address from Heroku?

I need my app to be able access an third party API who limits access based on a single, static IP Address.

Due to the dynamic nature of the Heroku dynos and routing mesh, this is not possible - I'll need something with a fixed IP Address to act as a proxy.

An US East EC2 Linux/Nginx instance would seem the sensible choice, but these seems like a lot of work/maintenance for something pretty trivial. Does anyone know of any services out there that do this?

like image 812
Jamie Buchanan Avatar asked Jun 08 '12 11:06

Jamie Buchanan


2 Answers

Ok so after a bit of research I've discovered the best way to do this currently is indeed with an AWS US East EC2 instance running some sort of proxy. I've gone with linux/nginx.

I've also learned there is a Heroku add-on currently in alpha stage of development that will handle exactly this requirement. If you'd like to test it, get in touch with Heroku support.

like image 57
Jamie Buchanan Avatar answered Nov 12 '22 21:11

Jamie Buchanan


You can also use the Proximo add-on to get a static outbound IP address via proxy without any of the maintenance headaches.

like image 29
David Dollar Avatar answered Nov 12 '22 22:11

David Dollar