Rename compute-mig-bc.tf to compute-vm-group-bc.tf
This commit is contained in:
parent
ccc06fc767
commit
a6e377fad2
|
@ -45,13 +45,13 @@ module "glb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [
|
backends = [
|
||||||
{ backend = module.compute-mig-b.group.id },
|
{ backend = module.compute-vm-group-b.group.id },
|
||||||
{ backend = module.compute-mig-c.group.id }
|
{ backend = module.compute-vm-group-c.group.id }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=9 fixtures=fixtures/compute-mig-bc.tf
|
# tftest modules=3 resources=9 fixtures=fixtures/compute-vm-group-bc.tf
|
||||||
```
|
```
|
||||||
|
|
||||||
### Minimal HTTPS examples
|
### Minimal HTTPS examples
|
||||||
|
@ -89,8 +89,8 @@ module "ralb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [
|
backends = [
|
||||||
{ backend = module.compute-mig-b.group.id },
|
{ backend = module.compute-vm-group-b.group.id },
|
||||||
{ backend = module.compute-mig-c.group.id }
|
{ backend = module.compute-vm-group-c.group.id }
|
||||||
]
|
]
|
||||||
protocol = "HTTP"
|
protocol = "HTTP"
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ module "ralb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=12 fixtures=fixtures/compute-mig-bc.tf
|
# tftest modules=3 resources=12 fixtures=fixtures/compute-vm-group-bc.tf
|
||||||
```
|
```
|
||||||
|
|
||||||
#### HTTPS backends
|
#### HTTPS backends
|
||||||
|
@ -123,8 +123,8 @@ module "ralb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [
|
backends = [
|
||||||
{ backend = module.compute-mig-b.group.id },
|
{ backend = module.compute-vm-group-b.group.id },
|
||||||
{ backend = module.compute-mig-c.group.id }
|
{ backend = module.compute-vm-group-c.group.id }
|
||||||
]
|
]
|
||||||
protocol = "HTTPS"
|
protocol = "HTTPS"
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,7 @@ module "ralb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=12 fixtures=fixtures/ssl-certificate.tf,fixtures/compute-mig-bc.tf
|
# tftest modules=3 resources=12 fixtures=fixtures/ssl-certificate.tf,fixtures/compute-vm-group-bc.tf
|
||||||
```
|
```
|
||||||
|
|
||||||
#### HTTP to HTTPS redirect
|
#### HTTP to HTTPS redirect
|
||||||
|
@ -193,7 +193,7 @@ module "ralb-test-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [
|
backends = [
|
||||||
{ backend = module.compute-mig-b.group.id },
|
{ backend = module.compute-vm-group-b.group.id },
|
||||||
]
|
]
|
||||||
protocol = "HTTP"
|
protocol = "HTTP"
|
||||||
}
|
}
|
||||||
|
@ -209,7 +209,7 @@ module "ralb-test-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# tftest modules=5 resources=16 fixtures=fixtures/ssl-certificate.tf,fixtures/compute-mig-bc.tf
|
# tftest modules=5 resources=16 fixtures=fixtures/ssl-certificate.tf,fixtures/compute-vm-group-bc.tf
|
||||||
```
|
```
|
||||||
|
|
||||||
### Health Checks
|
### Health Checks
|
||||||
|
@ -230,7 +230,7 @@ module "ralb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [{
|
backends = [{
|
||||||
backend = module.compute-mig-b.group.id
|
backend = module.compute-vm-group-b.group.id
|
||||||
}]
|
}]
|
||||||
# no need to reference the hc explicitly when using the `default` key
|
# no need to reference the hc explicitly when using the `default` key
|
||||||
# health_checks = ["default"]
|
# health_checks = ["default"]
|
||||||
|
@ -242,7 +242,7 @@ module "ralb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=9 fixtures=fixtures/compute-mig-bc.tf
|
# tftest modules=3 resources=9 fixtures=fixtures/compute-vm-group-bc.tf
|
||||||
```
|
```
|
||||||
|
|
||||||
To leverage existing health checks without having the module create them, simply pass their self links to backend services and set the `health_check_configs` variable to an empty map:
|
To leverage existing health checks without having the module create them, simply pass their self links to backend services and set the `health_check_configs` variable to an empty map:
|
||||||
|
@ -257,14 +257,14 @@ module "ralb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [{
|
backends = [{
|
||||||
backend = module.compute-mig-b.group.id
|
backend = module.compute-vm-group-b.group.id
|
||||||
}]
|
}]
|
||||||
health_checks = ["projects/${var.project_id}/global/healthChecks/custom"]
|
health_checks = ["projects/${var.project_id}/global/healthChecks/custom"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
health_check_configs = {}
|
health_check_configs = {}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=8 fixtures=fixtures/compute-mig-bc.tf
|
# tftest modules=3 resources=8 fixtures=fixtures/compute-vm-group-bc.tf
|
||||||
```
|
```
|
||||||
|
|
||||||
### Backend Types and Management
|
### Backend Types and Management
|
||||||
|
@ -291,13 +291,13 @@ module "ralb-0" {
|
||||||
default-b = {
|
default-b = {
|
||||||
zone = "${var.region}-b"
|
zone = "${var.region}-b"
|
||||||
instances = [
|
instances = [
|
||||||
module.compute-mig-b.id
|
module.compute-vm-group-b.id
|
||||||
]
|
]
|
||||||
named_ports = { http = 80 }
|
named_ports = { http = 80 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=10 fixtures=fixtures/compute-mig-bc.tf
|
# tftest modules=3 resources=10 fixtures=fixtures/compute-vm-group-bc.tf
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Managed Instance Groups
|
#### Managed Instance Groups
|
||||||
|
@ -397,7 +397,7 @@ module "ralb-0" {
|
||||||
endpoints = {
|
endpoints = {
|
||||||
e-0 = {
|
e-0 = {
|
||||||
instance = "my-ig-b"
|
instance = "my-ig-b"
|
||||||
ip_address = module.compute-mig-b.internal_ip
|
ip_address = module.compute-vm-group-b.internal_ip
|
||||||
port = 80
|
port = 80
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -405,7 +405,7 @@ module "ralb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=11 fixtures=fixtures/compute-mig-bc.tf
|
# tftest modules=3 resources=11 fixtures=fixtures/compute-vm-group-bc.tf
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Hybrid NEG creation
|
#### Hybrid NEG creation
|
||||||
|
@ -530,12 +530,12 @@ module "ralb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [{
|
backends = [{
|
||||||
backend = module.compute-mig-b.group.id
|
backend = module.compute-vm-group-b.group.id
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
other = {
|
other = {
|
||||||
backends = [{
|
backends = [{
|
||||||
backend = module.compute-mig-c.group.id
|
backend = module.compute-vm-group-c.group.id
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -557,7 +557,7 @@ module "ralb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# tftest modules=3 resources=10 fixtures=fixtures/compute-mig-bc.tf
|
# tftest modules=3 resources=10 fixtures=fixtures/compute-vm-group-bc.tf
|
||||||
```
|
```
|
||||||
|
|
||||||
### Complex example
|
### Complex example
|
||||||
|
@ -599,14 +599,14 @@ module "ralb-0" {
|
||||||
group-zone-b = {
|
group-zone-b = {
|
||||||
zone = "${var.region}-b"
|
zone = "${var.region}-b"
|
||||||
instances = [
|
instances = [
|
||||||
module.compute-mig-b.id
|
module.compute-vm-group-b.id
|
||||||
]
|
]
|
||||||
named_ports = { http = 80 }
|
named_ports = { http = 80 }
|
||||||
}
|
}
|
||||||
group-zone-c = {
|
group-zone-c = {
|
||||||
zone = "${var.region}-c"
|
zone = "${var.region}-c"
|
||||||
instances = [
|
instances = [
|
||||||
module.compute-mig-c.id
|
module.compute-vm-group-c.id
|
||||||
]
|
]
|
||||||
named_ports = { http = 80 }
|
named_ports = { http = 80 }
|
||||||
}
|
}
|
||||||
|
@ -633,7 +633,7 @@ module "ralb-0" {
|
||||||
endpoints = {
|
endpoints = {
|
||||||
e-0 = {
|
e-0 = {
|
||||||
instance = "my-ig-c"
|
instance = "my-ig-c"
|
||||||
ip_address = module.compute-mig-c.internal_ip
|
ip_address = module.compute-vm-group-c.internal_ip
|
||||||
port = 80
|
port = 80
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -687,7 +687,7 @@ module "ralb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=18 fixtures=fixtures/compute-mig-bc.tf
|
# tftest modules=3 resources=18 fixtures=fixtures/compute-vm-group-bc.tf
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- TFDOC OPTS files:1 -->
|
<!-- TFDOC OPTS files:1 -->
|
||||||
|
@ -745,6 +745,6 @@ module "ralb-0" {
|
||||||
|
|
||||||
## Fixtures
|
## Fixtures
|
||||||
|
|
||||||
- [compute-mig-bc.tf](../../tests/fixtures/compute-mig-bc.tf)
|
- [compute-mig-bc.tf](../../tests/fixtures/compute-vm-group-bc.tf)
|
||||||
- [ssl-certificate.tf](../../tests/fixtures/ssl-certificate.tf)
|
- [ssl-certificate.tf](../../tests/fixtures/ssl-certificate.tf)
|
||||||
<!-- END TFDOC -->
|
<!-- END TFDOC -->
|
||||||
|
|
|
@ -46,13 +46,13 @@ module "glb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [
|
backends = [
|
||||||
{ backend = module.compute-mig-b.group.id },
|
{ backend = module.compute-vm-group-b.group.id },
|
||||||
{ backend = module.compute-mig-c.group.id },
|
{ backend = module.compute-vm-group-c.group.id },
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=9 fixtures=fixtures/compute-mig-bc.tf inventory=minimal-http.yaml e2e
|
# tftest modules=3 resources=9 fixtures=fixtures/compute-vm-group-bc.tf inventory=minimal-http.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
### Minimal HTTPS examples
|
### Minimal HTTPS examples
|
||||||
|
@ -69,8 +69,8 @@ module "glb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [
|
backends = [
|
||||||
{ backend = module.compute-mig-b.group.id },
|
{ backend = module.compute-vm-group-b.group.id },
|
||||||
{ backend = module.compute-mig-c.group.id },
|
{ backend = module.compute-vm-group-c.group.id },
|
||||||
]
|
]
|
||||||
protocol = "HTTP"
|
protocol = "HTTP"
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ module "glb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=10 fixtures=fixtures/compute-mig-bc.tf inventory=http-backends.yaml e2e
|
# tftest modules=3 resources=10 fixtures=fixtures/compute-vm-group-bc.tf inventory=http-backends.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
#### HTTPS backends
|
#### HTTPS backends
|
||||||
|
@ -99,8 +99,8 @@ module "glb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [
|
backends = [
|
||||||
{ backend = module.compute-mig-b.group.id },
|
{ backend = module.compute-vm-group-b.group.id },
|
||||||
{ backend = module.compute-mig-c.group.id },
|
{ backend = module.compute-vm-group-c.group.id },
|
||||||
]
|
]
|
||||||
protocol = "HTTPS"
|
protocol = "HTTPS"
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ module "glb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=10 fixtures=fixtures/compute-mig-bc.tf inventory=https-backends.yaml e2e
|
# tftest modules=3 resources=10 fixtures=fixtures/compute-vm-group-bc.tf inventory=https-backends.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
#### HTTP to HTTPS redirect
|
#### HTTP to HTTPS redirect
|
||||||
|
@ -165,7 +165,7 @@ module "glb-test-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [
|
backends = [
|
||||||
{ backend = module.compute-mig-b.group.id },
|
{ backend = module.compute-vm-group-b.group.id },
|
||||||
]
|
]
|
||||||
protocol = "HTTP"
|
protocol = "HTTP"
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ module "glb-test-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# tftest modules=5 resources=14 fixtures=fixtures/compute-mig-bc.tf inventory=http-https-redirect.yaml e2e
|
# tftest modules=5 resources=14 fixtures=fixtures/compute-vm-group-bc.tf inventory=http-https-redirect.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
### Classic vs Non-classic
|
### Classic vs Non-classic
|
||||||
|
@ -196,13 +196,13 @@ module "glb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [
|
backends = [
|
||||||
{ backend = module.compute-mig-b.group.id },
|
{ backend = module.compute-vm-group-b.group.id },
|
||||||
{ backend = module.compute-mig-c.group.id },
|
{ backend = module.compute-vm-group-c.group.id },
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=9 fixtures=fixtures/compute-mig-bc.tf inventory=classic-vs-non-classic.yaml e2e
|
# tftest modules=3 resources=9 fixtures=fixtures/compute-vm-group-bc.tf inventory=classic-vs-non-classic.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
### Health Checks
|
### Health Checks
|
||||||
|
@ -221,7 +221,7 @@ module "glb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [{
|
backends = [{
|
||||||
backend = module.compute-mig-b.group.id
|
backend = module.compute-vm-group-b.group.id
|
||||||
}]
|
}]
|
||||||
# no need to reference the hc explicitly when using the `default` key
|
# no need to reference the hc explicitly when using the `default` key
|
||||||
# health_checks = ["default"]
|
# health_checks = ["default"]
|
||||||
|
@ -233,7 +233,7 @@ module "glb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=9 fixtures=fixtures/compute-mig-bc.tf inventory=health-check-1.yaml e2e
|
# tftest modules=3 resources=9 fixtures=fixtures/compute-vm-group-bc.tf inventory=health-check-1.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
To leverage existing health checks without having the module create them, simply pass their self links to backend services and set the `health_check_configs` variable to an empty map:
|
To leverage existing health checks without having the module create them, simply pass their self links to backend services and set the `health_check_configs` variable to an empty map:
|
||||||
|
@ -246,14 +246,14 @@ module "glb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [{
|
backends = [{
|
||||||
backend = module.compute-mig-b.group.id
|
backend = module.compute-vm-group-b.group.id
|
||||||
}]
|
}]
|
||||||
health_checks = ["projects/${var.project_id}/global/healthChecks/custom"]
|
health_checks = ["projects/${var.project_id}/global/healthChecks/custom"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
health_check_configs = {}
|
health_check_configs = {}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=8 fixtures=fixtures/compute-mig-bc.tf inventory=health-check-2.yaml
|
# tftest modules=3 resources=8 fixtures=fixtures/compute-vm-group-bc.tf inventory=health-check-2.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
### Backend Types and Management
|
### Backend Types and Management
|
||||||
|
@ -278,13 +278,13 @@ module "glb-0" {
|
||||||
default-b = {
|
default-b = {
|
||||||
zone = "${var.region}-b"
|
zone = "${var.region}-b"
|
||||||
instances = [
|
instances = [
|
||||||
module.compute-mig-b.id
|
module.compute-vm-group-b.id
|
||||||
]
|
]
|
||||||
named_ports = { http = 80 }
|
named_ports = { http = 80 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=10 fixtures=fixtures/compute-mig-bc.tf inventory=instance-groups.yaml e2e
|
# tftest modules=3 resources=10 fixtures=fixtures/compute-vm-group-bc.tf inventory=instance-groups.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Managed Instance Groups
|
#### Managed Instance Groups
|
||||||
|
@ -432,7 +432,7 @@ module "glb-0" {
|
||||||
endpoints = {
|
endpoints = {
|
||||||
e-0 = {
|
e-0 = {
|
||||||
instance = "my-ig-b"
|
instance = "my-ig-b"
|
||||||
ip_address = module.compute-mig-b.internal_ip
|
ip_address = module.compute-vm-group-b.internal_ip
|
||||||
port = 80
|
port = 80
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -440,7 +440,7 @@ module "glb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=11 fixtures=fixtures/compute-mig-bc.tf inventory=zonal-neg-creation.yaml e2e
|
# tftest modules=3 resources=11 fixtures=fixtures/compute-vm-group-bc.tf inventory=zonal-neg-creation.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Hybrid NEG creation
|
#### Hybrid NEG creation
|
||||||
|
@ -636,12 +636,12 @@ module "glb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [{
|
backends = [{
|
||||||
backend = module.compute-mig-b.group.id
|
backend = module.compute-vm-group-b.group.id
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
other = {
|
other = {
|
||||||
backends = [{
|
backends = [{
|
||||||
backend = module.compute-mig-c.group.id
|
backend = module.compute-vm-group-c.group.id
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -663,7 +663,7 @@ module "glb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# tftest modules=3 resources=10 fixtures=fixtures/compute-mig-bc.tf inventory=url-map.yaml e2e
|
# tftest modules=3 resources=10 fixtures=fixtures/compute-vm-group-bc.tf inventory=url-map.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
### SSL Certificates
|
### SSL Certificates
|
||||||
|
@ -699,8 +699,8 @@ module "glb-0" {
|
||||||
backend_service_configs = {
|
backend_service_configs = {
|
||||||
default = {
|
default = {
|
||||||
backends = [
|
backends = [
|
||||||
{ backend = module.compute-mig-b.group.id },
|
{ backend = module.compute-vm-group-b.group.id },
|
||||||
{ backend = module.compute-mig-c.group.id },
|
{ backend = module.compute-vm-group-c.group.id },
|
||||||
]
|
]
|
||||||
protocol = "HTTP"
|
protocol = "HTTP"
|
||||||
}
|
}
|
||||||
|
@ -716,7 +716,7 @@ module "glb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=12 fixtures=fixtures/compute-mig-bc.tf inventory=ssl-certificates.yaml e2e
|
# tftest modules=3 resources=12 fixtures=fixtures/compute-vm-group-bc.tf inventory=ssl-certificates.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
### Complex example
|
### Complex example
|
||||||
|
@ -761,14 +761,14 @@ module "glb-0" {
|
||||||
group-zone-b = {
|
group-zone-b = {
|
||||||
zone = "${var.region}-b"
|
zone = "${var.region}-b"
|
||||||
instances = [
|
instances = [
|
||||||
module.compute-mig-b.id
|
module.compute-vm-group-b.id
|
||||||
]
|
]
|
||||||
named_ports = { http = 80 }
|
named_ports = { http = 80 }
|
||||||
}
|
}
|
||||||
group-zone-c = {
|
group-zone-c = {
|
||||||
zone = "${var.region}-c"
|
zone = "${var.region}-c"
|
||||||
instances = [
|
instances = [
|
||||||
module.compute-mig-c.id
|
module.compute-vm-group-c.id
|
||||||
]
|
]
|
||||||
named_ports = { http = 80 }
|
named_ports = { http = 80 }
|
||||||
}
|
}
|
||||||
|
@ -795,7 +795,7 @@ module "glb-0" {
|
||||||
endpoints = {
|
endpoints = {
|
||||||
e-0 = {
|
e-0 = {
|
||||||
instance = "my-ig-c"
|
instance = "my-ig-c"
|
||||||
ip_address = module.compute-mig-c.internal_ip
|
ip_address = module.compute-vm-group-c.internal_ip
|
||||||
port = 80
|
port = 80
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -849,7 +849,7 @@ module "glb-0" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=19 fixtures=fixtures/compute-mig-bc.tf inventory=complex-example.yaml e2e
|
# tftest modules=3 resources=19 fixtures=fixtures/compute-vm-group-bc.tf inventory=complex-example.yaml e2e
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- TFDOC OPTS files:1 -->
|
<!-- TFDOC OPTS files:1 -->
|
||||||
|
@ -911,5 +911,5 @@ module "glb-0" {
|
||||||
|
|
||||||
## Fixtures
|
## Fixtures
|
||||||
|
|
||||||
- [compute-mig-bc.tf](../../tests/fixtures/compute-mig-bc.tf)
|
- [compute-vm-group-bc.tf](../../tests/fixtures/compute-vm-group-bc.tf)
|
||||||
<!-- END TFDOC -->
|
<!-- END TFDOC -->
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
module "compute-mig-b" {
|
module "compute-vm-group-b" {
|
||||||
source = "./fabric/modules/compute-vm"
|
source = "./fabric/modules/compute-vm"
|
||||||
project_id = var.project_id
|
project_id = var.project_id
|
||||||
zone = "${var.region}-b"
|
zone = "${var.region}-b"
|
||||||
|
@ -30,7 +30,7 @@ module "compute-mig-b" {
|
||||||
group = { named_ports = {} }
|
group = { named_ports = {} }
|
||||||
}
|
}
|
||||||
|
|
||||||
module "compute-mig-c" {
|
module "compute-vm-group-c" {
|
||||||
source = "./fabric/modules/compute-vm"
|
source = "./fabric/modules/compute-vm"
|
||||||
project_id = var.project_id
|
project_id = var.project_id
|
||||||
zone = "${var.region}-c"
|
zone = "${var.region}-c"
|
Loading…
Reference in New Issue