1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Hi Vinay,
For your purpose, you may want to use the lifecycle hook (activated by the ASG service when it prepares termination) corresponding to instance termination in the ASG: https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html#lifecycle-hooks-availability
And then, in this hook, you send detach commands to ASG service to remove this instance from the group: see https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html
Best,
Didier
Contenus pertinents
- demandé il y a un an
- demandé il y a 3 mois
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 5 mois
- AWS OFFICIELA mis à jour il y a 6 mois
- AWS OFFICIELA mis à jour il y a 8 mois
Detach can only be run on InService instances. It will fail on ones in Terminating:Wait
But the hook would give time to notify a human to manually investigate or have a snapshot taken to be reviewed later