How do you pin the Terraform version across a team?
BeginnerProductionRepository Structure, Environments and Module Strategy
Answer
Use required_version = "~> 1.9" in code and a version manager that reads .terraform-version or .tool-versions (tfenv, mise, asdf). CI installs the same version with hashicorp/setup-terraform and terraform_version. This avoids the "newer version wrote state" problem.
More on Repository Structure, Environments and Module Strategy
Monorepo or multi-repo for Terraform?BeginnerHow do you lay out environments in a repo?BeginnerWhen would you adopt Terragrunt?BeginnerDo you use tfvars files per environment or code branches?IntermediateHow do you promote a module change from dev to qa to prod?AdvancedWhat is an internal module registry strategy?Beginner