From 1f8009b6ca879d85b5bc6a0d227fe959005af43e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wawrzyniec=20=27Wawrzek=27=20Niewodnicza=C5=84ski?= Date: Thu, 24 Oct 2024 14:37:50 +0100 Subject: [PATCH] Improve docs & upgrade providers - remove version of random provider - bump version of all providers - fix the update-providers script - improve README file and add links to module docs files --- README.md | 12 ++++++------ backend/README.md | 2 +- dns_zone/README.md | 2 +- lb/README.md | 2 +- network/README.md | 2 +- postgres/README.md | 2 +- postgres/tests/private/main.tf | 3 +-- postgres/tests/standalone/main.tf | 3 +-- update-providers.zsh | 2 +- 9 files changed, 14 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index cdd7d15..b502c3c 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # otofu-modules -Modules for Open Tofu (Terraform) +The Open Tofu (Terraform) to deploy an infrastructure required for an application deployment. ## Module list -- backend - vm for the backend -- dns_zone - dns zone in GCP -- lb - Load Balancer for Backend -- postgres - DB for Postgres -- network - a GCP network (for backend) +- [backend](backend/README.md) - vm for the backend +- [dns_zone](dns_zone/README.md) - dns zone in GCP +- [lb](lb/README.md) - Load Balancer for Backend +- [postgres](postgres/README.md) - DB for Postgres +- [network](network/README.md) - a GCP network (for backend) # Repository Technical info diff --git a/backend/README.md b/backend/README.md index f619c52..dc0f14b 100644 --- a/backend/README.md +++ b/backend/README.md @@ -16,7 +16,7 @@ No requirements. | Name | Version | |------|---------| -| [google](#provider\_google) | 6.7.0 | +| [google](#provider\_google) | 6.8.0 | ## Modules diff --git a/dns_zone/README.md b/dns_zone/README.md index 7b09830..dd47686 100644 --- a/dns_zone/README.md +++ b/dns_zone/README.md @@ -15,7 +15,7 @@ No requirements. | Name | Version | |------|---------| -| [google](#provider\_google) | 6.7.0 | +| [google](#provider\_google) | 6.8.0 | ## Modules diff --git a/lb/README.md b/lb/README.md index 5af2c3d..c6dd519 100644 --- a/lb/README.md +++ b/lb/README.md @@ -18,7 +18,7 @@ No requirements. | Name | Version | |------|---------| -| [google](#provider\_google) | 6.7.0 | +| [google](#provider\_google) | 6.8.0 | ## Modules diff --git a/network/README.md b/network/README.md index eb51869..f42676d 100644 --- a/network/README.md +++ b/network/README.md @@ -19,7 +19,7 @@ No requirements. | Name | Version | |------|---------| -| [google](#provider\_google) | 6.7.0 | +| [google](#provider\_google) | 6.8.0 | ## Modules diff --git a/postgres/README.md b/postgres/README.md index aefc86c..adba6ea 100644 --- a/postgres/README.md +++ b/postgres/README.md @@ -22,7 +22,7 @@ No requirements. | Name | Version | |------|---------| -| [google](#provider\_google) | 6.7.0 | +| [google](#provider\_google) | 6.8.0 | ## Modules diff --git a/postgres/tests/private/main.tf b/postgres/tests/private/main.tf index 0962c4a..25a1dc4 100644 --- a/postgres/tests/private/main.tf +++ b/postgres/tests/private/main.tf @@ -1,8 +1,7 @@ terraform { required_providers { random = { - source = "hashicorp/random" - version = "3.5.1" + source = "hashicorp/random" } } } diff --git a/postgres/tests/standalone/main.tf b/postgres/tests/standalone/main.tf index a0651b9..750ee71 100644 --- a/postgres/tests/standalone/main.tf +++ b/postgres/tests/standalone/main.tf @@ -1,8 +1,7 @@ terraform { required_providers { random = { - source = "hashicorp/random" - version = "3.5.1" + source = "hashicorp/random" } } } diff --git a/update-providers.zsh b/update-providers.zsh index c935396..afae3d8 100755 --- a/update-providers.zsh +++ b/update-providers.zsh @@ -3,4 +3,4 @@ # Simple loop to upgrade providers in each directory, # and then update README files -for i (*(/)) {(cd postgres; tofu init -upgrade); terraform-docs postgres} +for i (*(/)) {(cd $i; tofu init -upgrade); terraform-docs $i}