This tutorial shows you how to configure an HTTP(S) load balancer to enable multi-region deployments for API Gateway. For more details on how this set up work have a look at the article here.
The diagram below depicts the architecture that this blueprint sets up.
Clone this repository or open it in cloud shell, then go through the following steps to create resources:
terraform init
terraform apply -var project_id=my-project-id
-
Copy the IP address returned as output
-
Execute the following command
curl -v http://<IP_ADDRESS>/hello
Once done testing, you can clean up resources by running terraform destroy
.
name | description | type | required | default |
---|---|---|---|---|
project_id | Identifier of the project. | string |
✓ | |
regions | List of regions to deploy the proxy in. | list(string) |
✓ | |
project_create | Parameters for the creation of the new project. | object({…}) |
null |
name | description | sensitive |
---|---|---|
ip_address | The reserved global IP address. |