Terraform and env variables

If you work with Terraform you might know the struggle setting the right environment variables. Especially if you work with different Terraform configurations on a daily basis. I found 2 tools (or a tool and a script) to make this much easier. The first is direnv which automagically sources env variables stored in a .envrc file if you change in a managed directory. $ mkdir direnv-test $ echo "export mykey=wasd" >> ....

January 8, 2021 · 2 min · 282 words · André Sterba