if (amazonSecurityContext.getUserName() == null || amazonSecurityContext.getUserName().isEmpty())
throw new GFacProviderException("EC2 Username is empty");
/* Need to start EC2 instance before running it */
AWSCredentials credential =
new BasicAWSCredentials(amazonSecurityContext.getAccessKey(), amazonSecurityContext.getSecretKey());
AmazonEC2Client ec2client = new AmazonEC2Client(credential);
taskID = jobExecutionContext.getTaskData().getTaskID();
GFacUtils.saveJobStatus(jobExecutionContext, details, JobState.SETUP);
initEc2Environment(jobExecutionContext, ec2client);
checkConnection(instance, ec2client);