update readme with cross project backend external regional/global LB - review (#2457)

* update readme with cross project backend external regional LB

* update readme with cross project backend external global LB

* update readme with cross project backend external regional/global LB

* merge

* update readme with cross project backend external regional/global LB - review

* Fix README

---------

Co-authored-by: Julio Castillo <jccb@google.com>
This commit is contained in:
vivianvarela
2024-07-30 12:28:13 -03:00
committed by GitHub
parent 1bbff3cc3a
commit 35d61e4cda
2 changed files with 61 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ The variable space of this module closely mirrors that of [net-lb-app-ext](../n
- [Hybrid NEG creation](#hybrid-neg-creation)
- [Private Service Connect NEG creation](#private-service-connect-neg-creation)
- [Serverless NEG creation](#serverless-neg-creation)
- [Cross Project Backend](#cross-project-backend)
- [URL Map](#url-map)
- [Complex example](#complex-example)
- [Deploying changes to load balancer configurations](#deploying-changes-to-load-balancer-configurations)
@@ -518,6 +519,37 @@ module "ralb-0" {
# tftest modules=1 resources=5 e2e
```
#### Cross Project Backend
The module supports Cross Project Backends. This is an example of a referencing to a Backend in another project:
```hcl
module "ralb-0" {
source = "./fabric/modules/net-lb-app-ext-regional"
project_id = var.project_id
name = "ralb-test-0"
vpc = var.vpc.self_link
region = var.region
backend_service_configs = {
my_backend = {
project_id = "backend_project_id" #Specify the project ID where the backend resides
backends = [
{
backend = "neg-0"
}
]
health_checks = []
}
}
urlmap_config = {
default_service = "ralb-test-0-my_backend"
}
}
# tftest modules=1 resources=5
```
### URL Map
The module exposes the full URL map resource configuration, with some minor changes to the interface to decrease verbosity, and support for aliasing backend services via keys.

View File

@@ -25,6 +25,7 @@ Due to the complexity of the underlying resources, changes to the configuration
- [Internet NEG creation](#internet-neg-creation)
- [Private Service Connect NEG creation](#private-service-connect-neg-creation)
- [Serverless NEG creation](#serverless-neg-creation)
- [Cross Project Backend](#cross-project-backend)
- [URL Map](#url-map)
- [SSL Certificates](#ssl-certificates)
- [Complex example](#complex-example)
@@ -624,6 +625,34 @@ module "glb-0" {
}
# tftest modules=1 resources=6 inventory=https-sneg.yaml e2e
```
#### Cross Project Backend
The module supports Cross Project Backends. This is an example of a referencing to a Backend in another project:
```hcl
module "ralb-0" {
source = "./fabric/modules/net-lb-app-ext"
project_id = var.project_id
name = "ralb-test-0"
backend_service_configs = {
my_backend = {
project_id = "backend_project_id" #Specify the project ID where the backend resides
backends = [
{
backend = "neg-0"
}
]
health_checks = []
}
}
urlmap_config = {
default_service = "ralb-test-0-my_backend"
}
}
# tftest modules=1 resources=5
```
### URL Map