In the Scale up script, I refer the localhost from where I initiate / spawn new ec2 instances. Upon creating the ec2 instances I do multiple actions on few other servers (haproxy & a redis server).
From the Scale up script, I include a task wherein, I’m trying to add / allow the newly created instance ip to access redis server’s port.