From 6d95b50a13b014f3fd1bdd9582cbb703bfaea47b Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Thu, 3 Dec 2020 20:21:29 +0000 Subject: [PATCH 1/6] 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 1398707..8852fe1 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: b45a728a922c5916d37060aaa1fdad9b8b702d79 # frozen: v1.25.0 + rev: 16254fab5eac22dd1bf46b971c43460805cb6fa3 # frozen: v1.45.0 hooks: - id: terraform_fmt - id: terraform_validate From 175050644dc83100b92f4231b4d9db451f8f5113 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sun, 3 Jan 2021 19:58:39 +0000 Subject: [PATCH 2/6] Add separators between required/optional variables --- README.md | 17 +++++++++++++++++ variables.tf | 10 ++++++++++ 2 files changed, 27 insertions(+) diff --git a/README.md b/README.md index 1b75a73..95ae05e 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,23 @@ Template of a minimal Terraform module. This module follows the [standard structure][standard-module-structure] described in the [Terraform documentation][terraform-docs]. +## Requirements + +| Name | Version | +|------|---------| +| terraform | >= 0.12.0 | + +## Providers + +No provider. + +## Inputs + +No input. + +## Outputs + +No output. diff --git a/variables.tf b/variables.tf index e69de29..825965a 100644 --- a/variables.tf +++ b/variables.tf @@ -0,0 +1,10 @@ +# ---------------------------------------- +# Required Variables +# ---------------------------------------- + + +# ---------------------------------------- +# Optional Variables +# ---------------------------------------- + + From 988d7b21c31b7e9c3e8ae8cc3ae50faf57d650a8 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sun, 3 Jan 2021 20:00:35 +0000 Subject: [PATCH 3/6] Add 'local.tf' --- local.tf | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 local.tf diff --git a/local.tf b/local.tf new file mode 100644 index 0000000..5e44527 --- /dev/null +++ b/local.tf @@ -0,0 +1,3 @@ +# https://www.terraform.io/docs/configuration/locals.html. +locals { +} From ea5fa65cd79581480a2f4505fb2e66c414b90f58 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sun, 3 Jan 2021 20:01:33 +0000 Subject: [PATCH 4/6] Add 'data.tf' --- data.tf | 1 + 1 file changed, 1 insertion(+) create mode 100644 data.tf diff --git a/data.tf b/data.tf new file mode 100644 index 0000000..f7c0f30 --- /dev/null +++ b/data.tf @@ -0,0 +1 @@ +# https://www.terraform.io/docs/configuration/data-sources.html. From f7017c67d1ac5b3f2b26e60dfb4bf4a574ab4d97 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sun, 3 Jan 2021 20:01:52 +0000 Subject: [PATCH 5/6] Add 'templates' folder --- templates/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 templates/.gitkeep diff --git a/templates/.gitkeep b/templates/.gitkeep new file mode 100644 index 0000000..e69de29 From 8e37a90a54febe3b8d9841d64dca9a04d9c5915c Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Sun, 3 Jan 2021 20:16:46 +0000 Subject: [PATCH 6/6] Update readme file --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 95ae05e..31f02d8 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,14 @@ Template of a minimal Terraform module. 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: + +* `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. + ## Requirements @@ -25,5 +33,6 @@ No output. + [pre-commit]: https://pre-commit.com/ "pre-commit Website" [standard-module-structure]: https://www.terraform.io/docs/modules/index.html#standard-module-structure "Terraform Documentation - Standard Module Structure" [terraform-docs]: https://www.terraform.io/docs/ "Terraform Documentation"