// filter instances on scaling group tag
Filter filter = new Filter().withName(
Constants.SCALING_GROUP_TAG_FILTER_KEY).withValues(
getScalingGroupName());
List<Instance> instances = this.client.getInstances(asList(filter));
return Lists.transform(instances, new InstanceToMachine());
} catch (Exception e) {
throw new ScalingGroupException(format(
"failed to retrieve machines in scaling group \"%s\": %s",
getScalingGroupName(), e.getMessage()), e);
}