Added GLB example with MIG as backend

This commit is contained in:
eliamaldini 2023-01-13 17:56:12 +01:00
parent 42ae9bb2dd
commit 92b5b1f86b
1 changed files with 27 additions and 0 deletions

View File

@ -214,6 +214,33 @@ module "glb-0" {
}
# tftest modules=1 resources=6
```
#### Managed Instance Groups
This example shows how to use the module with a manage instance group as backend:
```hcl
module "glb-0" {
source = "./fabric/modules/net-glb"
project_id = "myprj"
name = "glb-test-0"
backend_service_configs = {
default = {
backends = [
{ backend = "projects/myprj/regions/europe-west8/instanceGroups/mig-a" }
]
}
}
health_check_configs = {
default = {
tcp = { port = 80 }
}
}
}
# tftest modules=1 resources=5
```
#### Storage Buckets