Im in need for some opinions. This is a problem Im trying to solve. I need to make requests to an external api, but for security reasons, they whitelist IP addresses. We have multiple AWS ec2 instances, and we don't want to communicate with this external client, every time we change/add ec2 instances. The api calls are pretty basic.
We use nginx for load balancing, but from what I know, request only comes thru it, not out of it, so the IP addresses wont be a single one. What would be a good way to achieve a single IP address to communicate with the external API?
I'm thinking of a microservice on a seperate ec2 instance with an elastic IP address. What are some other ideas?