Moving the wait statement up just under the server create so when the instance comes up and the name is attached, the chef run will properly wait for everything to come online before attempting to do anything else.