Reading environment variables in a terraform file
The right way to DevOps
1 min readMar 29, 2020
Working with terraform a lot of times you need to deal with environment variables, be it reading credentials or externalising some other configuration.
Let’s see how to do that.
- Add
TF_VAR
suffix to your regular environment variables.