This commit is contained in:
Yanis DARIUS 2024-12-04 16:30:22 +01:00
parent 872ad86a53
commit 5bc65ab504

View File

@ -24,8 +24,8 @@ resource "google_compute_subnetwork" "db" {
region = var.region region = var.region
} }
resource "google_compute_firewall" "allowHttpHttps" { resource "google_compute_firewall" "allowhttphttps" {
name = "allowHttpHttps" name = "allow-http-https"
network = google_compute_network.vpc.id network = google_compute_network.vpc.id
allow { allow {
@ -37,8 +37,8 @@ resource "google_compute_firewall" "allowHttpHttps" {
target_tags = ["web"] target_tags = ["web"]
} }
resource "google_compute_firewall" "allowSsh" { resource "google_compute_firewall" "allowssh" {
name = "allowSsh" name = "allow-ssh"
network = google_compute_network.vpc.id network = google_compute_network.vpc.id
allow { allow {
@ -51,7 +51,7 @@ resource "google_compute_firewall" "allowSsh" {
} }
resource "google_compute_firewall" "frontToBack" { resource "google_compute_firewall" "fronttoback" {
name = "front-to-back" name = "front-to-back"
network = google_compute_network.vpc.id network = google_compute_network.vpc.id
@ -64,8 +64,8 @@ resource "google_compute_firewall" "frontToBack" {
target_tags = ["backend"] target_tags = ["backend"]
} }
resource "google_compute_firewall" "backToDb" { resource "google_compute_firewall" "backtodb" {
name = "backToDb" name = "back-to-db"
network = google_compute_network.vpc.id network = google_compute_network.vpc.id
allow { allow {