Environment variables are not supported
nmiodice opened this issue · comments
Nicholas M. Iodice commented
I'd like to pass TF configuration (tf vars) though to my command (which is a complex script that relies on ENV vars), but am unable to do so because there is no ability to pass environment vars.
Matti Paksula commented
can you give me a more concrete example?
Nicholas M. Iodice commented
I'd like to run something like this:
module "files" {
source = "matti/resource/shell"
command = "echo $FOO"
environment = {
FOO = var.foo
}
}
Of course, the actual business logic in the script is more complex and relies on a number of environment variables. Passing them in as arguments may be complicated as I'd need to also handle escape characters
Matti Paksula commented
environment variables are supported now, see the README