Fix: updating ami's in template