mirror of
https://github.com/ghndrx/GSP662.git
synced 2026-02-10 23:14:57 +00:00
Complete restructure
This commit is contained in:
21
modules/network/firewall/main.tf
Normal file
21
modules/network/firewall/main.tf
Normal file
@@ -0,0 +1,21 @@
|
||||
## 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"]
|
||||
}
|
||||
Reference in New Issue
Block a user