Files
hunfabric/modules/api-gateway/recipe-multi-region
dependabot[bot] 8b85bd33b8 Bump ajv in /modules/api-gateway/recipe-multi-region/function (#3749)
Bumps [ajv](https://github.com/ajv-validator/ajv) from 8.17.1 to 8.18.0.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v8.17.1...v8.18.0)

---
updated-dependencies:
- dependency-name: ajv
  dependency-version: 8.18.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-19 09:48:02 +01:00
..
2025-10-24 13:11:17 +02:00

Multi-region deployment for API Gateway

This recipe 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.

Architecture diagram

Once deployed do the following to see that it works:

  1. Copy the IP address returned as output

  2. Execute the following command:

    curl -k -v https://example.com/hello --resolve example.com:443:<IP_ADDRESS>

Variables

name description type required default
project_id Identifier of the project. string
regions List of regions to deploy the proxy in. list(string)
_testing Populate this variable to avoid triggering the data source. object({…}) null

Outputs

name description sensitive
address LB IP address.

Test

module "test" {
  source     = "./fabric/modules/api-gateway/recipe-multi-region"
  project_id = "project-1"
  regions = [
    "europe-west1",
    "us-central1"
  ]
  _testing = {
    name   = "project-1"
    number = 1234567890
  }
}
# tftest modules=8 resources=47