diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 17fc5a6fc..b12ec6e1f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,3 +58,17 @@ repos: - id: prettier # https://prettier.io/docs/en/options.html#parser files: '.json5$' + + +- repo: local + hooks: + - id: terraform_docs + name: terraform_docs + entry: ./hooks/terraform_docs.sh + args: + - --hook-config=--path-to-file=README.md + - --hook-config=--use_standard_markers=false + - --hook-config=--create-file-if-not-exist=true + - --hook-config=--add-to-existing-file=true + language: system + files: (\.tf)$ diff --git a/outputs.tf b/outputs.tf new file mode 100644 index 000000000..a3319169a --- /dev/null +++ b/outputs.tf @@ -0,0 +1,4 @@ +output "api_address" { + value = aws_api_gateway_stage.default_audit_stream.invoke_url + description = "Invoke URL for the API" +}