I need a ELB that has a static IP and fronts an auto scaling group.
Looking at the recent announcement, Network Load Balancers can do both of these things. However, when I try setting up a NLB I don't see where to set/get the static IP, nor do I see a way to associate it with an auto scaling group.
When I edit my auto scaling group I search for the NLB previously created in its list of ELBs and the NLB isn't present as a choice.
1) How do I associate an auto scaling group to a NLB?
I'm not sure I understand the concept of target groups with regards to a NLB and auto scaler. If I create a target group, it wants specific instance names or IP's of EC2 instances.
2) Given that those names/IPs change when auto scaler adds/removes instances, how do I know?
3) How/where do I get a static IP for my NLB?
1) use a command like aws autoscaling attach-load-balancers --auto-scaling-group-name my-asg --load-balancer-names my-lb, see http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html?shortFooter=true
2) you don't need to know, the asg knows
3) attach an Elastic IP, one per subnet the NLB is associated with
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With