How to get the correct hostname when using ElasticIP in a CloudFormation template

In the end I used a few seconds delay during startup to allow the actual ip/hostname to settle before making the REST call during startup!