From ef0f1f163cca44f5af0893ab4102cca52872687b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wawrzyniec=20=27Wawrzek=27=20Niewodnicza=C5=84ski?= Date: Wed, 30 Oct 2024 00:34:46 +0000 Subject: [PATCH] [IVYNET-124] Fix SSL for LB (#10) New version of LB module with fix to LB DNS record/domain in SSL New version of Google provider in all modules --- backend/README.md | 2 +- dns_zone/README.md | 2 +- lb/README.md | 5 +++-- lb/main.tf | 8 ++++++-- network/README.md | 2 +- postgres/README.md | 2 +- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/backend/README.md b/backend/README.md index dc0f14b..111d31f 100644 --- a/backend/README.md +++ b/backend/README.md @@ -16,7 +16,7 @@ No requirements. | Name | Version | |------|---------| -| [google](#provider\_google) | 6.8.0 | +| [google](#provider\_google) | 6.9.0 | ## Modules diff --git a/dns_zone/README.md b/dns_zone/README.md index dd47686..7fcce0b 100644 --- a/dns_zone/README.md +++ b/dns_zone/README.md @@ -15,7 +15,7 @@ No requirements. | Name | Version | |------|---------| -| [google](#provider\_google) | 6.8.0 | +| [google](#provider\_google) | 6.9.0 | ## Modules diff --git a/lb/README.md b/lb/README.md index c6dd519..4b2a8e3 100644 --- a/lb/README.md +++ b/lb/README.md @@ -6,7 +6,8 @@ The traffic is: - port 50050 -> 50050 (GRPC/HTTP2) # Versions -- lb-1 initial version of the module +- lb-2 - fix DNS record/domain for SSL +- lb-1 - initial version of the module # TF Docs @@ -18,7 +19,7 @@ No requirements. | Name | Version | |------|---------| -| [google](#provider\_google) | 6.8.0 | +| [google](#provider\_google) | 6.9.0 | ## Modules diff --git a/lb/main.tf b/lb/main.tf index 82dc27f..8078923 100644 --- a/lb/main.tf +++ b/lb/main.tf @@ -1,5 +1,9 @@ +locals { + dns_record = "${var.name}.${var.dns_domain}" +} + resource "google_dns_record_set" "this" { - name = "${var.name}.${var.dns_domain}" + name = local.dns_record managed_zone = var.dns_zone project = var.project rrdatas = [google_compute_global_forwarding_rule.http.ip_address] @@ -16,6 +20,6 @@ resource "google_compute_managed_ssl_certificate" "this" { name = var.name project = var.project managed { - domains = ["${var.dns_domain}"] + domains = [local.dns_record] } } diff --git a/network/README.md b/network/README.md index f42676d..1f2d36d 100644 --- a/network/README.md +++ b/network/README.md @@ -19,7 +19,7 @@ No requirements. | Name | Version | |------|---------| -| [google](#provider\_google) | 6.8.0 | +| [google](#provider\_google) | 6.9.0 | ## Modules diff --git a/postgres/README.md b/postgres/README.md index adba6ea..ef5a9b6 100644 --- a/postgres/README.md +++ b/postgres/README.md @@ -22,7 +22,7 @@ No requirements. | Name | Version | |------|---------| -| [google](#provider\_google) | 6.8.0 | +| [google](#provider\_google) | 6.9.0 | ## Modules