🐛 Bug Fixes
fix: require Terraform >= 1.5.0 for the check block @sarankumar1325 (#267)
## what- Raise
required_versionfrom>= 1.3.0to>= 1.5.0inversions.tfandexamples/complete/versions.tf.
why
main.tfdeclarescheck "auto_mode_consistency" { ... }. Terraform addedcheckblocks in 1.5.0.- With the old floor, Terraform 1.3.x and 1.4.x pass the version check and then fail with a parse error that doesn't point to the real cause:
Error: Unsupported block type
on main.tf line 34:
34: check "auto_mode_consistency" {
Blocks of type "check" are not expected here.
- With
>= 1.5.0, those versions get the clear "Unsupported Terraform Core version" message instead. README.mdis left alone because the readme bot regenerates its requirements table.
Checked locally with terraform init -backend=false and terraform validate:
- Terraform 1.3.10 and 1.4.7 fail on
mainwith the error above. - Terraform 1.5.7 passes for the root module and for
examples/complete. terraform fmt -check -recursiveis clean.
references
- https://developer.hashicorp.com/terraform/language/block/check (added in Terraform v1.5.0)