The cloud-init Terraform provider exposes the cloudinit_config data
source, previously available as the template_cloudinit_config resource
in the template provider, which renders a multipart MIME configuration
for use with cloud-init.
