Control EC2 instances script