Skip to content

Commit 453315b

Browse files
committed
Consistency fix
1 parent 793fef0 commit 453315b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/content/specs/terraform/_index.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -698,15 +698,17 @@ A cleanup of `deprecated_variables.tf` can be performed during a major version r
698698

699699
<br>
700700

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
702702

703703
The `terraform.tf` file must only contain one `terraform` block.
704704

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.
706706

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.
708710

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).***
710712

711713
Example `terraform.tf` file:
712714

@@ -728,7 +730,7 @@ terraform {
728730

729731
<br>
730732

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
732734

733735
The `terraform` block in `terraform.tf` must contain the `required_providers` block.
734736

0 commit comments

Comments
 (0)