scottwinkler / terraform-provider-shell

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

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

Closed justinmchase closed 1 year ago

justinmchase commented 1 year ago

Such as:

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

    environment {
        NAME = "justin"
    }
}