FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

google_compute_firewall

Manages a firewall resource within GCE.

Example Usage

resource "google_compute_firewall" "default" {
  name    = "test"
  network = "${google_compute_network.other.name}"

  allow {
    protocol = "icmp"
  }

  allow {
    protocol = "tcp"
    ports    = ["80", "8080", "1000-2000"]
  }

  source_tags = ["web"]
}

Argument Reference

The following arguments are supported:


The allow block supports:

Attributes Reference

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


See the source of this document at Terraform.io