scottwinkler / terraform-provider-shell

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

Added sensitive environment variables block #38

Closed ppff closed 4 years ago

ppff commented 4 years ago

Pretty useful if you don't want your environment variables to be displayed when terraform outputs the plan (eg tokens, passwords, etc).

Added documentation in README, example and tests. (Couldn't add another data_source test because of some race condition coming from the schema functions, it doesn't seem to be related to my code.)

ppff commented 4 years ago

This PR is not about variables leaking in logs, but rather, leaking in plans. When using shell scripts in CI/CD, plans are automatically displayed by terraform, hence are everywhere in the CI/CD logs. Terraform logs, in which we should see stdout/stderr, if that's what you mean, are not displayed unless we force them to. Please rename as you will!

scottwinkler commented 4 years ago

released as part of 1.3.0