scottwinkler/terraform-provider-shell

Can `data` sources have `environment` variables also?

Closed this issue · 0 comments

Such as:

data "shell_script" "user" {
    lifecycle_commands {
        read = <<-EOF
          echo "{\"user\": \"$NAME\"}"
        EOF
    }

    environment {
        NAME = "justin"
    }
}