Terraform Best Practices — Using variables
Published in
6 min readApr 15, 2021
When starting out with Terraform it’s hard to know what is considered ‘best practice’ in a number of areas.
This post is the sixth in the series which focuses on point 6 in the list, ‘Avoid hardcoding variables’, and also shows best practices for general variable use in Terraform.
- Use a consistent file structure across your projects.
- Use modules wherever possible.
- Use a consistent naming convention.
- Use a consistent format and style.