ad fw rules

This commit is contained in:
gregory hendrickson
2023-03-15 16:26:29 -07:00
parent 67e4284930
commit 2d69f92c9e

View File

@@ -0,0 +1,23 @@
resource "google_compute_firewall" "fe_firewall" {
name = "fw-fe"
network = "default"
allow {
protocol = "tcp"
ports = ["8080"]
}
target_tags = ["frontend"]
}
resource "google_compute_firewall" "be_firewall" {
name = "fw-be"
network = "default"
allow {
protocol = "tcp"
ports = ["8081-8082"]
}
target_tags = ["backend"]
}