From 2e52bc44a4a393f69f099f6d4f97ac8109a8c661 Mon Sep 17 00:00:00 2001 From: David FILLON Date: Thu, 21 Mar 2024 16:50:14 +0100 Subject: [PATCH] fix: terraform-docs hook --- .pre-commit-config.yaml | 3 ++- README.md | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 202ad7c..9d758c0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,8 @@ repos: - id: terraform_validate - id: terraform_docs args: - - '--args=--lockfile=false' + - --hook-config=--add-to-existing-file=true + - --hook-config=--create-file-if-not-exist=true - id: terraform_tflint args: - '--args=--only=terraform_deprecated_interpolation' diff --git a/README.md b/README.md index 4b8d0c3..ca5e937 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ resource "aws_instance" { } ``` - + ## Requirements | Name | Version | @@ -27,7 +27,7 @@ resource "aws_instance" { | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.0 | +| [aws](#provider\_aws) | 5.32.1 | ## Modules @@ -54,8 +54,8 @@ No modules. | Name | Description | |------|-------------| | [availability\_zones](#output\_availability\_zones) | List of availability zone names. | -| [internet\_gateway\_id](#output\_internet\_gateway\_id) | n/a | +| [internet\_gateway\_id](#output\_internet\_gateway\_id) | Internet gateway id. | | [sg\_id](#output\_sg\_id) | Default Security Group id. | | [subnet\_ids](#output\_subnet\_ids) | List of default Subnet ids. | | [vpc\_id](#output\_vpc\_id) | Default VPC id. | - +