Create cloud-init script as part of image build