- Newest
- Most votes
- Most comments
Hello MrJibus,
I want to directly address your question about replacing the ElasticIP that you configured for the NLB. Once an NLB is created with an ElasticIP you can always add another node with an additional EIP for the purpose of resilience across zones. As mentioned before, this is covered here: https://aws.amazon.com/premiumsupport/knowledge-center/elb-attach-elastic-ip-to-public-nlb/.
This does not cover the use case that you are describing which is to replace the IP of the an existing NLB node(s). Unfortunately, once an NLB node is created, you cannot alter the ElasticIP associated with it. This is documented here:
As quoted from the documentation here: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html:
"...When you create an internet-facing load balancer, you can optionally specify one Elastic IP address per subnet. If you do not choose one of your own Elastic IP addresses, Elastic Load Balancing provides one Elastic IP address per subnet for you. These Elastic IP addresses provide your load balancer with static IP addresses that will not change during the life of the load balancer. You can't change these Elastic IP addresses after you create the load balancer..."
As such, you are correct. You will have to create the NLB again, if you want to alter ANY existing Elastic IP assignment to ANY existing NLB nodes.
You can reference this link on how to update the Elastic IP of a NLB: https://aws.amazon.com/premiumsupport/knowledge-center/elb-attach-elastic-ip-to-public-nlb/
Relevant content
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 12 days ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
I can confirm that this is the answer. The other linked docs show how to add an Elastic IP to a new load balancer, or a new node in an existing load balancer, not replacing an associated Elastic IP in an existing load balancer. Truly a massive missed productivity feature. I have had to do it about 20 times while testing new infrastructure now.