@Override
protected Object executeInternal() throws Exception {
AmazonEC2 ec2 = clientFactory.getService(AmazonEC2Client.class);
DescribeEnvironmentResourcesResult envResources = getService()
.describeEnvironmentResources(
new DescribeEnvironmentResourcesRequest()
.withEnvironmentId(curEnv.getEnvironmentId())
.withEnvironmentName(
curEnv.getEnvironmentName()));
List<String> instanceIds = new ArrayList<String>();
for (Instance i : envResources.getEnvironmentResources().getInstances())
instanceIds.add(i.getId());
DescribeInstancesResult ec2Instances = ec2
.describeInstances(new DescribeInstancesRequest()
.withInstanceIds(instanceIds));