Using Auto Scaling Groups (ASGs)
Detailed information on creating and managing Auto Scaling groups can be found here:
AWS Documentation: Auto Scaling Groups
The Launch Configuration of the ASG must use the AMI created earlier or you can use a standard Linux AMI and use cloud-init to install Docker and Nirmata agent.
This will ensure that Docker and Nirmata Host Agent are pre installed.