Wait for cloud-init to finish running and then report status

cloud-init

  • Command line tool for managing cloud instance initialization.
    More information: <https://cloudinit.readthedocs.io>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

cloud-init status --wait

click the source code to copy install cloud-init on any operating system with command-not-found.com