Skip to content

Instantly share code, notes, and snippets.

@bvkisa
Created September 4, 2024 13:56
resource "google_compute_firewall" "sample_rule" {
project = google_project.project.project_id
name = var.rule_name
network = var.network_name
source_ranges = ["0.0.0.0/0"]
allow {
protocol = "tcp"
ports = ["8888", "8787", "80"]
}
target_tags = ["http"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment