/** * Amazon ASG client. Abstracted to aid testing. * * @return the Amazon Auto Scaling client */ protected AmazonAutoScalingClient asgClient() { AmazonAutoScalingClient client = new AmazonAutoScalingClient(cred); client.setEndpoint("autoscaling." + region + ".amazonaws.com"); return client; }