Added aws config when creating ec2client for terminating instances. need region endpoint to make termination of instances work properly.