diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8852fe1..d0bf7a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: 16254fab5eac22dd1bf46b971c43460805cb6fa3 # frozen: v1.45.0 + rev: 11b2e8d78664dc1f8e989a5340d929a844492896 # frozen: v1.48.0 hooks: - id: terraform_fmt - id: terraform_validate diff --git a/README.md b/README.md index 31f02d8..68f7b25 100644 --- a/README.md +++ b/README.md @@ -2,35 +2,47 @@ Template of a minimal Terraform module. -This module follows the [standard structure][standard-module-structure] described in the [Terraform documentation][terraform-docs]. +This module follows the [standard structure][standard-module-structure] +described in the [Terraform documentation][terraform-docs]. -The following non-standard but commonly used files and folders have also been added: +The following non-standard but commonly used files and folders have also been +added: * `local.tf` * `data.tf` +* `providers.tf` * `templates` +* `versions.tf` -A [pre-commit][pre-commit] configuration file is present to automatically format and validate the code and update the readme file upon Git commits. +A [pre-commit][pre-commit] configuration file is present to automatically format +and validate the code and update the readme file upon Git commits. ## Requirements | Name | Version | |------|---------| -| terraform | >= 0.12.0 | +| [terraform](#requirement\_terraform) | >= 0.12.0 | ## Providers -No provider. +No providers. + +## Modules + +No modules. + +## Resources + +No resources. ## Inputs -No input. +No inputs. ## Outputs -No output. - +No outputs. [pre-commit]: https://pre-commit.com/ "pre-commit Website" diff --git a/main.tf b/main.tf index e03d2e9..8b13789 100644 --- a/main.tf +++ b/main.tf @@ -1,7 +1 @@ -# https://www.terraform.io/docs/configuration/terraform.html#terraform-block-syntax. -terraform { - required_version = ">= 0.12.0" - required_providers { - } -} diff --git a/providers.tf b/providers.tf new file mode 100644 index 0000000..5380478 --- /dev/null +++ b/providers.tf @@ -0,0 +1 @@ +# https://www.terraform.io/docs/language/providers/index.html. diff --git a/versions.tf b/versions.tf new file mode 100644 index 0000000..e03d2e9 --- /dev/null +++ b/versions.tf @@ -0,0 +1,7 @@ +# https://www.terraform.io/docs/configuration/terraform.html#terraform-block-syntax. +terraform { + required_version = ">= 0.12.0" + + required_providers { + } +}