Now the logic waits until a public ip is assigned to the image. Once it's assigned, software configuration is done on top of the image. I have used python threads to do this.