Skip to content

Commit

Permalink
Improve docs & upgrade providers
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
wawrzek committed Oct 24, 2024
1 parent 65561c8 commit 1f8009b
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 16 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 6.7.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.8.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion dns_zone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 6.7.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.8.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion lb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 6.7.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.8.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 6.7.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.8.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 6.7.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.8.0 |

## Modules

Expand Down
3 changes: 1 addition & 2 deletions postgres/tests/private/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
terraform {
required_providers {
random = {
source = "hashicorp/random"
version = "3.5.1"
source = "hashicorp/random"
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions postgres/tests/standalone/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
terraform {
required_providers {
random = {
source = "hashicorp/random"
version = "3.5.1"
source = "hashicorp/random"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion update-providers.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 1f8009b

Please sign in to comment.