How to automate the process of adding and removing cluster members for auto scalling

Hi Geeks,

I want auto scaling up and down of sensugo cluster on amazon. I want to add a member in cluster by running such command on new member instead of on already member of cluster. so that autos-calling can be achieved.

sensuctl cluster member-add backend-4 https://10.0.0.4:2380