You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/specs/terraform/_index.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -698,15 +698,17 @@ A cleanup of `deprecated_variables.tf` can be performed during a major version r
698
698
699
699
<br>
700
700
701
-
#### ID: TFNFR25 - Category: Code Style - All verified modules **MUST** have `terraform.tf` file
701
+
#### ID: TFNFR25 - Category: Code Style - All verified modules **MUST** have `terraform.tf` file and `required_version`**MUST** be set
702
702
703
703
The `terraform.tf` file must only contain one `terraform` block.
704
704
705
-
The first line of the `terraform` block should define a `required_version` property for the Terraform CLI in the format `required_version = "~> 1.6"` or `required_version = ">= 1.6.0, < 2.0.0`.
705
+
The first line of the `terraform` block should define a `required_version` property for the Terraform CLI.
706
706
707
-
***Note: You can read more about Terraform version constraints in the [documentation](https://developer.hashicorp.com/terraform/language/expressions/version-constraints).***
707
+
The `required_version` must limit the maximum major version of the Terraform CLI. Major version releases of the Terraform CLI can introduce breaking changes and *MUST* be tested.
708
+
709
+
The `required_version` property constraint can use the `~> #.#` or the `>= #.#.#, < #.#.#` format.
708
710
709
-
The `required_version` should limit the maximum major version of the Terraform CLI, as major version releases can introduce breaking changes and should be tested.
711
+
***Note: You can read more about Terraform version constraints in the [documentation](https://developer.hashicorp.com/terraform/language/expressions/version-constraints).***
710
712
711
713
Example `terraform.tf` file:
712
714
@@ -728,7 +730,7 @@ terraform {
728
730
729
731
<br>
730
732
731
-
#### ID: TFNFR26 - Category: Code Style - Providers must be declared in the `required_providers` block in `terraform.tf` and **MUST** have a constraint on minimum and maximum major version
733
+
#### ID: TFNFR26 - Category: Code Style - Providers **MUST** be declared in the `required_providers` block in `terraform.tf` and **MUST** have a constraint on minimum and maximum major version
732
734
733
735
The `terraform` block in `terraform.tf` must contain the `required_providers` block.
0 commit comments