String ipAddress = awaitIp.call();
LOG.debug("instance was assigned public IP address {}", ipAddress);
// re-read instance meta data
return this.client.getInstanceMetadata(instance.getInstanceId());
} catch (Exception e) {
throw new ScalingGroupException(
format("gave up waiting for instance \"%s\" to be assigned a public IP address: %s",
instance.getInstanceId(), e.getMessage()), e);
}
}