google_app_engine_firewall_rule

A single firewall rule that is evaluated against incoming traffic and provides an action to take on matched requests.

To get more information about FirewallRule, see:

Example Usage - App Engine Firewall Rule Basic

resource "google_project" "my_project" {
  name       = "tf-test-project"
  project_id = "ae-project"
  org_id     = "123456789"
  billing_account = "000000-0000000-0000000-000000"
}

resource "google_app_engine_application" "app" {
  project     = google_project.my_project.project_id
  location_id = "us-central"
}

resource "google_app_engine_firewall_rule" "rule" {
  project      = google_app_engine_application.app.project
  priority     = 1000
  action       = "ALLOW"
  source_range = "*"
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

FirewallRule can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import FirewallRule using one of the formats above. For example:

import {
  id = "apps/{{project}}/firewall/ingressRules/{{priority}}"
  to = google_app_engine_firewall_rule.default
}

When using the terraform import command, FirewallRule can be imported using one of the formats above. For example:

$ terraform import google_app_engine_firewall_rule.default apps/{{project}}/firewall/ingressRules/{{priority}}
$ terraform import google_app_engine_firewall_rule.default {{project}}/{{priority}}
$ terraform import google_app_engine_firewall_rule.default {{priority}}

User Project Overrides

This resource supports User Project Overrides.