2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
1
I have not tried this but I wonder if you could use Amazon EC2 Auto Scaling lifecycle hooks to automate adding and deleting the IPs in a target group as the instances are being added and removed from the auto scaling group.
0
I used instance (type) on the asg, and disregarding what the AWS article says about VPC peeing, I've been able to access the resources fine.
con risposta un anno fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 4 mesi fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
Thanks- not a bad shout. My only concern is that if an instance becomes unhealthy the script wouldn't be able to run from that instance; so the instance starting up would need to obtain the active instances from the ASG to then update the IPs for the target group.
I've not used lifecycles hooks so it would be something I'd look in to further.
But I suspect this is the only method to achieve this.. Which is a shame as its just seems a bit like a bodge until AWS implements something