Google App Engine Application URL Dispatch Rules

This page shows how to write Terraform for App Engine Application URL Dispatch Rules and write them securely.

google_app_engine_application_url_dispatch_rules (Terraform)

The Application URL Dispatch Rules in App Engine can be configured in Terraform with the resource name google_app_engine_application_url_dispatch_rules. The following sections describe 4 examples of how to use the resource and its parameters.

Example Usage from GitHub

github-iconbhidalto/terraform-appengine
resource "google_app_engine_application_url_dispatch_rules" "dispatch_rules" {
  dispatch_rules {
    domain  = var.domain
    path    = var.path
    service = var.service
  }
github-iconmikamakusa/terraform
resource "google_app_engine_application_url_dispatch_rules" "application_url_dispatch_rules" {
  count   = length(var.application_url_dispatch_rules)
  project = var.project

  dynamic "dispatch_rules" {
    for_each = lookup(var.application_url_dispatch_rules[count.index], "dispatch_rules")
github-iconniveklabs/google
resource "google_app_engine_application_url_dispatch_rules" "this" {
  project = var.project

  dynamic "dispatch_rules" {
    for_each = var.dispatch_rules
    content {
github-iconDevSeCol/cloud-build-ricardo
resource "google_app_engine_application_url_dispatch_rules" "app" {
  project = var.project_id

  dispatch_rules {
    path    = "/*"
    domain  = var.services.app_engine_standard.domain

Parameters

Explanation in Terraform Registry

Rules to match an HTTP request and dispatch that request to a service. To get more information about ApplicationUrlDispatchRules, see:

Frequently asked questions

What is Google App Engine Application URL Dispatch Rules?

Google App Engine Application URL Dispatch Rules is a resource for App Engine of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google App Engine Application URL Dispatch Rules?

For Terraform, the bhidalto/terraform-appengine, mikamakusa/terraform and niveklabs/google source code examples are useful. See the Terraform Example section for further details.

security-icon

Scan your IaC problem in 3 minutes for free

You can keep your IaC security for free. No credit card required.