AWS Load Balancer with a static IP address

后端 未结 8 754
死守一世寂寞
死守一世寂寞 2020-12-24 12:25

I have a set-up running on Amazon cloud with a couple of EC2 Instances running through a load balancer.

It is important that the site has a unique(static) IP or set

8条回答
  •  眼角桃花
    2020-12-24 12:42

    Your outbound requests to your 3rd party APIs will NOT go out via the ELB/ALB. That's for incoming connections. If you need an inbound static IP you'll probably need to forego the loadbalancer (or figure out how to implement Anshu's suggestion to attach an elastic IP to the loadbalancers, the doc is light on details). Update: I found some documentation that ALB use static addresses (and I just tried binding an elastic IP to one to be sure and that failed). If you're talking about outbound connections see below:

    • If your server is deployed in a public subnet you can attach an elastic IP to that host. Outbound communications will go out over that address.
    • If your server is deployed in a private subnet there's a NAT gateway attached to it. All outbound traffic from your private subnet will go out over that interface.

提交回复
热议问题