Ubuntu's cloud-init is a mechanism which can be used to provision a new instance upon initial boot. I imagine cloud-init can be used in many environments, but I'll focus on its use in Amazon Web Services (AWS).
You can invoke cloud-init in at least a couple ways :
- shell, with a lead line of #!/bin/sh
- cloud-init, with a lead line of #cloud-config