Skip to main content

GCP Compute Firewall

A GCP Compute Firewall represents an individual firewall rule within Google Cloud’s Virtual Private Cloud (VPC). The rule defines whether specific ingress or egress traffic is permitted or denied for the VM instances attached to the selected network, based on criteria such as protocol, port, source or destination ranges, tags, service accounts and priority. Because these rules are evaluated before packets reach an instance, mis-configuration can unintentionally block legitimate traffic or expose services publicly.
For an in-depth explanation of how firewall rules work, see Google’s official documentation: VPC firewall rules.

Terrafrom Mappings:

  • google_compute_firewall.name

Supported Methods

  • GET: Get a gcp-compute-firewall by its "name"
  • LIST: List all gcp-compute-firewall
  • SEARCH