Categorygithub.com/bgpat/terraform-provider-shellescape
repositorypackage
1.0.0
Repository: https://github.com/bgpat/terraform-provider-shellescape.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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"
}