3d41d01efc
* plugin folder, gitignore, serverless connector example * add support to fast plugin variables and outputs to tfdoc * rename folder, READMEs * add variable description * show diffs * check documentation, use multiple files * debug check doc * try a different glob * debug tfdoc names * more debug * and even more debug * fix gitignore * fix links * support extra files in tests * fix fixture, switch stage 2 peering to new tests * tfdoc * Allow globs in extra files --------- Co-authored-by: Julio Castillo <jccb@google.com> |
||
---|---|---|
.. | ||
function | ||
README.md | ||
diagram.png | ||
main.tf | ||
outputs.tf | ||
spec.yaml | ||
variables.tf |
README.md
Creating multi-region deployments for API Gateway
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.
Running the blueprint
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
Testing the blueprint
-
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
.
Variables
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 |
Outputs
name | description | sensitive |
---|---|---|
ip_address | The reserved global IP address. |
Test
module "test" {
source = "./fabric/blueprints/serverless/api-gateway"
project_create = {
billing_account_id = "123456789"
parent = "organizations/123456789"
}
project_id = "project-1"
regions = [
"europe-west1",
"europe-west2"
]
}
# tftest modules=8 resources=34