added wait conditions to synchronize CREATE_COMPLETE with user-data script