Skip to content

Commit

Permalink
[IVYNET-124] Fix SSL for LB (#10)
Browse files Browse the repository at this point in the history
    New version of LB module with fix to LB DNS record/domain in SSL
    New version of Google provider in all modules
  • Loading branch information
wawrzek authored Oct 30, 2024
1 parent b0757e4 commit ef0f1f1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
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.8.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.9.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.8.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.9.0 |

## Modules

Expand Down
5 changes: 3 additions & 2 deletions lb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<!-- BEGIN_TF_DOCS -->
Expand All @@ -18,7 +19,7 @@ No requirements.

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

## Modules

Expand Down
8 changes: 6 additions & 2 deletions lb/main.tf
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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]
}
}
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.8.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.9.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.8.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.9.0 |

## Modules

Expand Down

0 comments on commit ef0f1f1

Please sign in to comment.