since it’s not documented anywhere, (https://www.digitalocean.com/community/tutorials/an-introduction-to-cloud-config-scripting / http://cloudinit.readthedocs.io/en/latest/topics/modules.html) and I got to find out the hard way that
write_files runs after
runcmd, i was wondering if it’s possible to change the order in which cloud-init modules are executed?
The reasoning is that i will frequently need to place a bunch of files in place (config files, keys, etc) before being able to successfully run a command.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.