refactor ec2 instance initialization into a separate method
refactor run_job_on_instances() into a separate method