have script wait for instance to come up and fetch IP address