Pinning a Registry Module
module "vpc" { source = "terraform-aws-modules/vpc/aws" } has no version. What's the risk?
module "vpc" { source = "terraform-aws-modules/vpc/aws" }
version
Choose one answer
A fresh init may pull a breaking new major version.
init
The module can only be used once in the configuration.
The module is downloaded on every plan, which is slow.
Registry modules without a version argument are rejected by tofu validate in CI.
tofu validate