scottwinkler / terraform-provider-shell

Terraform provider for executing shell commands and saving output to state file
Mozilla Public License 2.0
279 stars 61 forks source link

Long string returned by the create command results the provider hang forever #26

Closed lachatak closed 4 years ago

lachatak commented 4 years ago

A ~150Kb long string returned by the script with >&3 will force the provider to hang forever.

Reproduce: test.sh

#!/bin/sh

TEST="Very very very long string, longer then about 65Kb"

jq -n  --arg test "$TEST" '{"test":$test}' >&3

provider:

resource "shell_script" "test" {
  lifecycle_commands {
    create = file("${path.root}/test.sh")
    delete = "echo {}"
  }
}
scottwinkler commented 4 years ago

fixed as part of release 1.0.0