Skip to content

Commit

Permalink
revert "backend" to "group"
Browse files Browse the repository at this point in the history
  • Loading branch information
rodriguezsergio committed Dec 19, 2024
1 parent d37f73c commit af40e67
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 46 deletions.
36 changes: 18 additions & 18 deletions modules/net-lb-app-ext-regional/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.compute-vm-group-b.group.id },
{ backend = module.compute-vm-group-c.group.id }
{ group = module.compute-vm-group-b.group.id },
{ group = module.compute-vm-group-c.group.id }
]
}
}
Expand Down Expand Up @@ -91,8 +91,8 @@ module "ralb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.compute-vm-group-b.group.id },
{ backend = module.compute-vm-group-c.group.id }
{ group = module.compute-vm-group-b.group.id },
{ group = module.compute-vm-group-c.group.id }
]
protocol = "HTTP"
}
Expand Down Expand Up @@ -125,8 +125,8 @@ module "ralb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.compute-vm-group-b.group.id },
{ backend = module.compute-vm-group-c.group.id }
{ group = module.compute-vm-group-b.group.id },
{ group = module.compute-vm-group-c.group.id }
]
protocol = "HTTPS"
}
Expand Down Expand Up @@ -198,7 +198,7 @@ module "ralb-test-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.compute-vm-group-b.group.id },
{ group = module.compute-vm-group-b.group.id },
]
protocol = "HTTP"
}
Expand Down Expand Up @@ -235,7 +235,7 @@ module "ralb-0" {
backend_service_configs = {
default = {
backends = [{
backend = module.compute-vm-group-b.group.id
group = module.compute-vm-group-b.group.id
}]
# no need to reference the hc explicitly when using the `default` key
# health_checks = ["default"]
Expand All @@ -262,7 +262,7 @@ module "ralb-0" {
backend_service_configs = {
default = {
backends = [{
backend = module.compute-vm-group-b.group.id
group = module.compute-vm-group-b.group.id
}]
health_checks = ["projects/${var.project_id}/regions/${var.region}/healthChecks/custom"]
}
Expand All @@ -288,7 +288,7 @@ module "ralb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "default-b" }
{ group = "default-b" }
]
}
}
Expand Down Expand Up @@ -361,7 +361,7 @@ module "ralb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.win-mig.group_manager.instance_group }
{ group = module.win-mig.group_manager.instance_group }
]
}
}
Expand Down Expand Up @@ -465,7 +465,7 @@ module "ralb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "neg-0" }
{ group = "neg-0" }
]
health_checks = []
}
Expand Down Expand Up @@ -498,7 +498,7 @@ module "ralb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "neg-0" }
{ group = "neg-0" }
]
health_checks = []
}
Expand Down Expand Up @@ -537,7 +537,7 @@ module "ralb-0" {
backends = [
{
backend = "neg-0"
group = "neg-0"
}
]
health_checks = []
Expand Down Expand Up @@ -566,12 +566,12 @@ module "ralb-0" {
backend_service_configs = {
default = {
backends = [{
backend = module.compute-vm-group-b.group.id
group = module.compute-vm-group-b.group.id
}]
}
other = {
backends = [{
backend = module.compute-vm-group-c.group.id
group = module.compute-vm-group-c.group.id
}]
}
}
Expand Down Expand Up @@ -610,8 +610,8 @@ module "ralb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "group-zone-b" },
{ backend = "group-zone-c" },
{ group = "group-zone-b" },
{ group = "group-zone-c" },
]
}
neg-gce-0 = {
Expand Down
3 changes: 1 addition & 2 deletions modules/net-lb-app-ext-regional/variables-backend-service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ variable "backend_service_configs" {
session_affinity = optional(string)
timeout_sec = optional(number)
backends = list(object({
# group renamed to backend
backend = string
group = string
balancing_mode = optional(string, "UTILIZATION")
capacity_scaler = optional(number, 1)
description = optional(string, "Terraform managed.")
Expand Down
52 changes: 26 additions & 26 deletions modules/net-lb-app-ext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.compute-vm-group-b.group.id },
{ backend = module.compute-vm-group-c.group.id },
{ group = module.compute-vm-group-b.group.id },
{ group = module.compute-vm-group-c.group.id },
]
}
}
Expand All @@ -73,8 +73,8 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.compute-vm-group-b.group.id },
{ backend = module.compute-vm-group-c.group.id },
{ group = module.compute-vm-group-b.group.id },
{ group = module.compute-vm-group-c.group.id },
]
protocol = "HTTP"
}
Expand Down Expand Up @@ -103,8 +103,8 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.compute-vm-group-b.group.id },
{ backend = module.compute-vm-group-c.group.id },
{ group = module.compute-vm-group-b.group.id },
{ group = module.compute-vm-group-c.group.id },
]
protocol = "HTTPS"
}
Expand Down Expand Up @@ -169,7 +169,7 @@ module "glb-test-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.compute-vm-group-b.group.id },
{ group = module.compute-vm-group-b.group.id },
]
protocol = "HTTP"
}
Expand Down Expand Up @@ -200,8 +200,8 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.compute-vm-group-b.group.id },
{ backend = module.compute-vm-group-c.group.id },
{ group = module.compute-vm-group-b.group.id },
{ group = module.compute-vm-group-c.group.id },
]
}
}
Expand All @@ -225,7 +225,7 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [{
backend = module.compute-vm-group-b.group.id
group = module.compute-vm-group-b.group.id
}]
# no need to reference the hc explicitly when using the `default` key
# health_checks = ["default"]
Expand All @@ -250,7 +250,7 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [{
backend = module.compute-vm-group-b.group.id
group = module.compute-vm-group-b.group.id
}]
health_checks = ["projects/${var.project_id}/global/healthChecks/custom"]
}
Expand All @@ -274,7 +274,7 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "default-b" }
{ group = "default-b" }
]
}
}
Expand Down Expand Up @@ -345,7 +345,7 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.win-mig.group_manager.instance_group }
{ group = module.win-mig.group_manager.instance_group }
]
}
}
Expand Down Expand Up @@ -497,7 +497,7 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "neg-0" }
{ group = "neg-0" }
]
health_checks = []
}
Expand Down Expand Up @@ -534,7 +534,7 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "neg-0" }
{ group = "neg-0" }
]
health_checks = []
}
Expand Down Expand Up @@ -565,7 +565,7 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "neg-0" }
{ group = "neg-0" }
]
health_checks = []
}
Expand Down Expand Up @@ -596,7 +596,7 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "neg-0" }
{ group = "neg-0" }
]
health_checks = []
port_name = "http"
Expand Down Expand Up @@ -641,7 +641,7 @@ module "ralb-0" {
backends = [
{
backend = "neg-0"
group = "neg-0"
}
]
health_checks = []
Expand All @@ -668,12 +668,12 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [{
backend = module.compute-vm-group-b.group.id
group = module.compute-vm-group-b.group.id
}]
}
other = {
backends = [{
backend = module.compute-vm-group-c.group.id
group = module.compute-vm-group-c.group.id
}]
}
}
Expand Down Expand Up @@ -731,8 +731,8 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = module.compute-vm-group-b.group.id },
{ backend = module.compute-vm-group-c.group.id },
{ group = module.compute-vm-group-b.group.id },
{ group = module.compute-vm-group-c.group.id },
]
protocol = "HTTP"
}
Expand Down Expand Up @@ -768,8 +768,8 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "group-zone-b" },
{ backend = "group-zone-c" },
{ group = "group-zone-b" },
{ group = "group-zone-c" },
]
}
neg-gce-0 = {
Expand Down Expand Up @@ -920,7 +920,7 @@ module "glb-0" {
backend_service_configs = {
default = {
backends = [
{ backend = "neg-0" }
{ group = "neg-0" }
]
health_checks = []
port_name = "http"
Expand Down Expand Up @@ -985,7 +985,7 @@ After applying this change, you can update the backend service to point to the n
backend_service_configs = {
default = {
backends = [
{ backend = "neg-1" }
{ group = "neg-1" }
]
health_checks = []
port_name = "http"
Expand Down

0 comments on commit af40e67

Please sign in to comment.