Drain and Deregister a Target
A 3-step recipe with Amazon Elastic Load Balancing. We can help you get access.
Recipe · 3 steps
Drain and Deregister a Target
Deregister a target and poll until it finishes draining.
- Read the target's current health to confirm it is registered.
- Deregister the target so the load balancer begins draining it.
- Poll the target's health and retry while it is still draining, ending once it is no longer in the draining state.
What you'll need to have ready
- targetGroupArn: The ARN of the target group to deregister from.
- targetId: The ID of the target to deregister.
- targetPort: The port the target is listening on.
For your developer
Arazzo workflow amazon-elastic-load-balancing:drain-and-deregister-target, 3 operations: DescribeTargetHealth → DeregisterTargets → DescribeTargetHealth. Specs on APIs.io.