Which versions does this constraint allow?
required_providers {
aws = { source = "hashicorp/aws", version = "~> 5.1" }
}
- Exactly 5.1 and nothing else
- Any version from 5.1 upward
- Only 5.1.x patch releases
- 5.1 and later 5.x releases
The pessimistic operator lets only the rightmost given part grow: "~> 5.1" means >= 5.1 and < 6.0, while "~> 5.1.0" would mean < 5.2.
Play DevOps ▸