From 1256f73b37416ea66090b01414568e387e53c0c1 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sun, 28 Feb 2021 15:41:42 +0000 Subject: [PATCH 1/7] Update pre-commit hooks --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8852fe1..08d6fb4 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: 59d5965d822c91d78fcc9c890d2ab70706c14a8f # frozen: v1.47.0 hooks: - id: terraform_fmt - id: terraform_validate From fc3af869bbd8a67fc136be3bcf0464c22712fdfd Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sun, 28 Feb 2021 15:43:44 +0000 Subject: [PATCH 2/7] Fix Markdown linting issues in readme --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 31f02d8..087f2de 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,18 @@ 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` * `templates` -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 From c2e302af6f424765eabe7bafa33413573b627b1e Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Tue, 6 Apr 2021 18:20:04 +0100 Subject: [PATCH 3/7] Move 'terraform' block into 'versions.tf' --- main.tf | 6 ------ versions.tf | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 versions.tf 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/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 { + } +} From f5a7186832e264b80c2e24e4da5cbe9a9906f47a Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Tue, 6 Apr 2021 18:20:34 +0100 Subject: [PATCH 4/7] Add 'providers.tf' as placeholder --- providers.tf | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 providers.tf diff --git a/providers.tf b/providers.tf new file mode 100644 index 0000000..e69de29 From a3da4ea8cd55a78247fac655a2310cadc72ea4d0 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Tue, 6 Apr 2021 18:31:42 +0100 Subject: [PATCH 5/7] Update readme --- README.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 087f2de..68f7b25 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ 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. @@ -20,20 +22,27 @@ and validate the code and update the readme file upon Git commits. | 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" From ed255ca555a18ebccf3aa15da8b13e27ec22a02c Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Thu, 3 Dec 2020 20:21:29 +0000 Subject: [PATCH 6/7] Update pre-commit hooks --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08d6fb4..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: 59d5965d822c91d78fcc9c890d2ab70706c14a8f # frozen: v1.47.0 + rev: 11b2e8d78664dc1f8e989a5340d929a844492896 # frozen: v1.48.0 hooks: - id: terraform_fmt - id: terraform_validate From 7118cee901a76410bf59d40f12b265ddc333f695 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Tue, 6 Apr 2021 18:36:40 +0100 Subject: [PATCH 7/7] Add link to providers doc as comment --- providers.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/providers.tf b/providers.tf index e69de29..5380478 100644 --- a/providers.tf +++ b/providers.tf @@ -0,0 +1 @@ +# https://www.terraform.io/docs/language/providers/index.html.