Skip to content

feat(serverless_negs): add serverless_deployment support for API Gateway#595

Open
litzius wants to merge 2 commits into
terraform-google-modules:mainfrom
litzius:feat/serverless-neg-api-gateway
Open

feat(serverless_negs): add serverless_deployment support for API Gateway#595
litzius wants to merge 2 commits into
terraform-google-modules:mainfrom
litzius:feat/serverless-neg-api-gateway

Conversation

@litzius

@litzius litzius commented Apr 17, 2026

Copy link
Copy Markdown

Description

Adds serverless-deployment as a new valid type in serverless_neg_backends, enabling the serverless_deployment block on google_compute_region_network_endpoint_group resources.

This is useful for routing traffic to API Gateway backends via an external HTTP(S) load balancer.

Changes

  • autogen/main.tf.tmpl / modules/serverless_negs/main.tf: add dynamic "serverless_deployment" block
  • autogen/variables.tf.tmpl / modules/serverless_negs/variables.tf: extend service object with optional platform and url_mask fields; add serverless-deployment to validation

Usage example

serverless_neg_backends = [{
  region = "us-central1"
  type   = "serverless-deployment"
  service = {
    name     = "my-gateway-id"
    platform = "apigateway.googleapis.com"
  }
}]

Add 'serverless-deployment' as a new type in serverless_neg_backends,
enabling use of the serverless_deployment block (e.g. API Gateway via
apigateway.googleapis.com). Extends the service object with optional
platform and url_mask fields.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant