1 Answer
- Newest
- Most votes
- Most comments
1
Maybe the following Automation runbook provided by AWS will fit your use case.
https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awsec2-patch-load-balancer-instance.html
- The load balancer or target group to which the instance is attached is determined, and the instance is verified as healthy.
- The instance is removed from the load balancer or target group.
- The automation waits for the period of time specified for the connection draining time.
- The AWS-RunPatchBaseline automation is called to patch the instance.
- The instance is reattached to the load balancer or target group.
Relevant content
- asked 3 years ago
- published 3 years ago

AWESOME.. Didnt find this.. Many thanks Riku!