throw new GFacProviderException("EC2 AMI or Instance ID is empty", jobExecutionContext);
if (amazonSecurityContext.getUserName() == null || amazonSecurityContext.getUserName().isEmpty())
throw new GFacProviderException("EC2 Username is empty", jobExecutionContext);
/* Need to start EC2 instance before running it */
AWSCredentials credential =
new BasicAWSCredentials(amazonSecurityContext.getAccessKey(), amazonSecurityContext.getSecretKey());
AmazonEC2Client ec2client = new AmazonEC2Client(credential);
initEc2Environment(jobExecutionContext, ec2client);
checkConnection(instance, ec2client);