/terraform-gg-multiline-command

Terraform module to enable execution of multiple commands across multiple lines.

Primary LanguageHCLApache License 2.0Apache-2.0

Multiline Command

Ever want to use the local-exec provisioner with Terraform, but you want to chain multiple lines of commands together? This is the module for you!

Usage

module "build" {
  source            = "glenngillen/multiline-command/gg"
  version           = "1.0.2"

  working_dir = "my/build/dir"
  command     = <<EOF
echo "hello world"
cd foo/bar
ls -al
EOF

}