Skip to content

bgpat/terraform-provider-shellescape

Repository files navigation

Terraform Shell Escape Data Source

release

A Terraform data source provider to escape shell special characters.

Usage

data "shellescape_quote" "hello" {
  string = <<-EOT
  _______
  < hello >
  -------
          \   ^__^
           \  (oo)\_______
              (__)\       )\/\
                  ||----w |
                  ||     ||
  EOT
}

resource "local_file" "hello" {
    content     = "echo ${data.shellescape_quote.hello.quoted}"
    filename = "hello.sh"
}