fixing create ami script after adding json