I have an ec2 instance with an ephemeral disk. This instance goes down every night and boots up when needed. I used cloud-init to format the ephemeral disk and this works correct but only once. when this machine is stopped and started (and the ephemeral disk disappears) it no longer runs this cloud-init module. I have attempted to override the default frequency by declaring the module in /etc/cloud/cloud.cfg as
cloud_init_modules: - [ disk-setup, always ]
And I have tried changing /usr/lib/python2.7/dist-packages/cloudinit/config/cc_disk_setup.py by changing the following variable
frequency = ALWAYS
Is it possible to force the module to run on every boot or do i need to approach this differently?