Skip to content

Commit be0c444

Browse files
committed
Added variable "managed_ssl_certificate_domains" to try and update dev URL
1 parent 4caf17c commit be0c444

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

terraform/environments/dev/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ module "deployment" {
3636
subnet_ip_cidr_range = var.subnet_ip_cidr_range
3737
vpc_host_network = var.vpc_host_network
3838
vpc_host_project = var.vpc_host_project
39+
managed_ssl_certificate_domains = ["test.getedvise.com"]
3940
}

terraform/modules/deployment/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ module "lb-http" {
130130
ssl = true
131131
managed_ssl_certificate_domains = [var.domain]
132132
https_redirect = true
133+
random_certificate_suffix = true
134+
133135

134136
backends = {
135137
for s in local.services : "${var.environment}-${s.name}" => {
@@ -155,8 +157,8 @@ module "lb-http" {
155157
}
156158
}
157159
}
158-
create_url_map = false
159-
url_map = google_compute_url_map.url_map.self_link
160+
create_url_map = false
161+
url_map = google_compute_url_map.url_map.self_link
160162
}
161163

162164
resource "google_compute_url_map" "url_map" {

terraform/modules/deployment/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,9 @@ variable "vpc_host_network" {
7171
description = "The name of the VPC host network"
7272
type = string
7373
}
74+
75+
variable "managed_ssl_certificate_domains" {
76+
description = "List of domains for the Google-managed SSL certificate"
77+
type = list(string)
78+
default = []
79+
}

0 commit comments

Comments
 (0)