TF_VARs from secret file cannot contain certain chars
dandelo opened this issue · 0 comments
dandelo commented
If the secrets file (stored in S3) contains certain characters, terraform.sh fails to export them as TF_VARs.
Specifically, I came across the issue when a password contained an open round bracket: (
.
bash -x bin/terraform.sh -p my_proj -e my_env -c my_comp -r eu-west-1 -a apply
bin/terraform.sh: eval: line 399: syntax error near unexpected token `('
bin/terraform.sh: eval: line 399: `export TF_VAR_my_secret=char(fail'
...
...
Error: Required variable not set: my_secret