Files
GSP662/modules/network/firewall/main.tf
gregory hendrickson cf7e3c2271 Complete restructure
2023-03-15 13:17:41 -07:00

22 lines
410 B
HCL

## Firewall Rules to allow Front-End and Back-End
resource "google_compute_firewall" "fw_fe" {
name = "fw-fe"
network = "default"
allow {
protocol = "tcp"
ports = ["8080"]
}
target_tags = ["frontend"]
}
resource "google_compute_firewall" "fw_be" {
name = "fw-be"
network = "default"
allow {
protocol = "tcp"
ports = ["8081-8082"]
}
target_tags = ["backend"]
}