Skip to content

Instantly share code, notes, and snippets.

@bvkisa
Created September 4, 2024 13:56

Revisions

  1. bvkisa created this gist Sep 4, 2024.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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"]
    }