diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml new file mode 100644 index 0000000..c450bfb --- /dev/null +++ b/.github/workflows/documentation.yaml @@ -0,0 +1,29 @@ +name: Generate terraform docs + +on: + push: + # don't run when we push a tag + tags-ignore: + - '*' + # don't run when we merge to main + # the action should have run already + branches-ignore: + - 'main' +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: terraform-linters/setup-tflint@v2 + name: Setup TFLint + with: + tflint_version: v0.38.1 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + - uses: pre-commit/action@v3.0.0 + # pre-commit fails if it changed files + # we want to go on + continue-on-error: true + - uses: pre-commit/action@v3.0.0 + - uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions diff --git a/.gitignore b/.gitignore index 5c3d8e7..0b000ee 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.tfstate.* **/.terraform/ **/secrets.auto.tfvars +examples/.terraform.lock.hcl \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c3a2a35..2ec62ae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,10 +5,9 @@ repos: - id: terraform-fmt - id: terraform-validate - id: tflint - - repo: git@github.com:kabisa/terraform-datadog-pre-commit-hook.git - rev: "1.2.2" + - repo: https://github.com/kabisa/terraform-datadog-pre-commit-hook + rev: "1.3.6" hooks: - id: terraform-datadog-docs - exclude: ^README.md$ args: - "." \ No newline at end of file diff --git a/.terraform.lock.hcl b/.terraform.lock.hcl index 6927203..56c8cad 100644 --- a/.terraform.lock.hcl +++ b/.terraform.lock.hcl @@ -2,9 +2,24 @@ # Manual edits may be lost in future updates. provider "registry.terraform.io/datadog/datadog" { - version = "3.12.0" + version = "3.13.1" constraints = "~> 3.12" hashes = [ - "h1:NKOccOHib+yGmUNcICO2xc70Y3v5L9MmMlsayux4NOY=", + "h1:J90dvYReKwVQhAMm1zQNlgY5b3jZGi9y4AB5x5eXpVE=", + "h1:SU8D6fk0yfR8Q3yQEV+25Z82+sfEIqQBbMqxOvfHQJk=", + "zh:0aaed8667976f5c9ccd1e76eacdbd9772296904e6bd7d9c5a615f3c936bc4892", + "zh:17b8daaf3d89247e88e304c46491577915a9951e3135ed909fa1b784cb120a9e", + "zh:3fd8a1eb8b3a2998d27966621b7556e62c83bb2035a0039fe122186d1972f216", + "zh:67c4a170002608d9b9f0352836a7e3c35e95a43b9d22a8c8fb89b77e32827a9a", + "zh:73a198c6bfd3aa4c420540018d1b5a26fa575264c72711474c684f1caaa5a3dc", + "zh:78a6169c826b41b9ed71c9e6e2f961ec348bd777adad050d4a0537a25c276c13", + "zh:7b5ffe43cbfdda0d09e012b524ebbb9ace16ed1c2b22affbda8b32027fab3132", + "zh:85889fdb7f51ea1c41d37d19242ac85d3943944f9893ee90d526f51be3b0f8e5", + "zh:873b5daeb60ed11050bfc6aabb93a1b407b3828c20c71b43cc98deca3436741f", + "zh:947a495655fe76f4b11553625b63ce1cbf62e03eb59725ad64598a651373e03d", + "zh:97d10341958214c7434eac729a66fbd0eacbccd4544bffb3242e30379c5b2d53", + "zh:aeb24bd3a40f0b349192a746c1a61f678ccf20ba14c5929d8a43c12ce7ce35ce", + "zh:c4713613f1d12977d390d40e47e185a31cb08919bec09470858b37c52da4148f", + "zh:ea463300f3d1b25c12a000821f770dc71be771cdb56288e74f282afb2317a46a", ] } diff --git a/README.md b/README.md index b647257..99096c7 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,6 @@ Modules are generated with this tool: https://github.com/kabisa/datadog-terrafor # Example Usage ```terraform -# tflint-ignore: terraform_module_version module "aws_eu_west_1" { source = "kabisa/aws-services/datadog" @@ -62,16 +61,20 @@ module "aws_eu_west_1" { ``` + +[Module Variables](#module-variables) + Monitors: -* [Terraform module for Datadog Aws Services](#terraform-module-for-datadog-aws-services) - * [Module Variables](#module-variables) + +| Monitor name | Default enabled | Priority | Query | +|-----------------|------|----|------------------------| # Getting started developing [pre-commit](http://pre-commit.com/) was used to do Terraform linting and validating. Steps: - Install [pre-commit](http://pre-commit.com/). E.g. `brew install pre-commit`. - - Run `pre-commit install` in this repo. (Every time you cloud a repo with pre-commit enabled you will need to run the pre-commit install command) + - Run `pre-commit install` in this repo. (Every time you clone a repo with pre-commit enabled you will need to run the pre-commit install command) - That’s it! Now every time you commit a code change (`.tf` file), the hooks in the `hooks:` config `.pre-commit-config.yaml` will execute. ## Module Variables diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..39a2b6e --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ] +}