init repo

This commit is contained in:
Gregory
2023-04-12 16:23:57 -07:00
commit 97e995b906
12 changed files with 176 additions and 0 deletions

31
modules/firewall/main.tf Normal file
View File

@@ -0,0 +1,31 @@
resource "google_compute_firewall" "allow_internal" {
name = "allow-internal"
network = var.network_name
source_ranges = ["0.0.0.0/0"]
allow {
protocol = "icmp"
}
allow {
protocol = "tcp"
ports = ["0-65535"]
}
allow {
protocol = "udp"
ports = ["0-65535"]
}
target_tags = ["allow-internal"]
}
resource "google_compute_firewall" "allow-ssh" {
name = "allow-ssh"
network = var.network_name
source_ranges = ["0.0.0.0/0"]
allow {
protocol = "tcp"
ports = ["22"]
}
target_tags = ["allow-ssh"]
}