how to set same IP for multiple instances when using outgoing restful request?

0

Hi, I am trying to use 3rd party services with my EC2 instances. The 3rd party service has some security rules. one of them is that my instance's IP has to be whitelisted.

I am working with multiple instances that can be scaled over time and I don't want to set Elastic IP for each instance. and I don't want to register new IP every time I'm adding a new instance.

Is there a way to use a service (maybe proxy) that listen to all my instances and forward the outgoing request with the same IP?

I also believe it is more secure to put my outgoing requests behind a proxy.

Can I get an explanation/tutorial for doing that?

Thank you! Asaf

1개 답변
1

This is presented as a use case for a NAT Gateway.

When you create a public NAT Gateway you associate it with an elastic IP which the IP address that outside services would see when it is used by your servers:

The NAT gateway replaces the source IP address of the instances with the IP address of the NAT gateway. For a public NAT gateway, this is the elastic IP address of the NAT gateway.

답변함 일 년 전
전문가
검토됨 일 년 전
  • Exactly, assuming the EC2 instances don't need to be public and accepting inbound requestd from the internet - a reasonable assumption given it's a scaled fleet.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠