Process Flow - Module versioning
Define module source with version
Terraform init downloads module version
Terraform plan uses module version
Terraform apply deploys infrastructure
Update version in config to upgrade module
Terraform init -upgrade upgrades module version
Terraform apply deploys updated infra
Terraform uses module versioning to control which module code is used during deployment. You specify a version, Terraform downloads that version, and applies it. Updating the version updates the module.