have a strange bug where tfenv fails from within cdktf, but does not fail when TFENV_DEBUG=3 is set
not sure how to debug or determine what's wrong
$ cdktf synth
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
[2022-07-16T18:38:04.540] [ERROR] default - /usr/src/app/.tfenv/lib/tfenv-exec.sh: line 43: /usr/src/app/.tfenv/versions/1.2.4/terraform: Permission denied
/usr/src/app/.tfenv/lib/tfenv-exec.sh: line 43: exec: /usr/src/app/.tfenv/versions/1.2.4/terraform: cannot execute: Permission denied
Terraform CLI not present - Please install a current version https://learn.hashicorp.com/terraform/getting-started/install.html
seems to work if the binary is installed before, i.e. running terraform version before the cdktf command seems to fix it
have a strange bug where
tfenvfails from withincdktf, but does not fail whenTFENV_DEBUG=3is setnot sure how to debug or determine what's wrong
seems to work if the binary is installed before, i.e. running
terraform versionbefore thecdktfcommand seems to fix it