» Cloud-init Provider

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.

Use the navigation to the left to read about the available data sources.

» Example Usage

data "cloudinit_config" "foo" {
  gzip = false
  base64_encode = false

  part {
    content_type = "text/x-shellscript"
    content = "baz"
    filename = "foobar.sh"
  }
}