Skill 5.4.1
Version constraints for registry modules
Key Concepts
Module version constraints use the same syntax as provider constraints: version = "5.1.2" pins an exact release, "~> 5.1" accepts 5.x from 5.1, and ">= 5.0, < 6.0" expresses a range. Registry modules use semantic versioning, so a new major version may contain breaking changes that alter or replace resources.
The version argument works only for modules from a registry, public or private. For local paths there is no version, and for Git sources the revision is selected with ?ref= in the source string.