I have EC2 instances behind an ELB. In Systems Manger, I want a way to automate taking an instance off the load balancer, then run command AWS-ApplyPatchBaseline, then putting the instance back on the load balancer.

I have successfully used Maintenance Window to automate patching, I just need to add steps to remove than re-add the instance from/to the ELB.

0 Answers