OnCallReady

Commands

cloud-init - the first-boot initialisation of cloud instances (user data, SSH keys, hostname, packages)

cloud-init status [--long] [--wait] | cloud-init query KEY

Options you will use

status
did the boot stages finish? done, running, error, degraded (done with warnings)
--long
with the details: extended status, last update, the errors
--wait
block until cloud-init has finished
query KEY
read instance data (v1.instance_id, v1.region, v1.availability_zone ...)

Examples

$ cloud-init status --long

did the user data succeed, and if not, which module failed

$ sudo tail -50 /var/log/cloud-init-output.log

what the script printed

Gotchas

Try cloud-init in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.