diff --git a/tp-cloud/terraform/modules/network/main.tf b/tp-cloud/terraform/modules/network/main.tf index 523af10..c52d5da 100644 --- a/tp-cloud/terraform/modules/network/main.tf +++ b/tp-cloud/terraform/modules/network/main.tf @@ -24,8 +24,8 @@ resource "google_compute_subnetwork" "db" { region = var.region } -resource "google_compute_firewall" "allow_http-https" { - name = "allow-http-https" +resource "google_compute_firewall" "allowHttpHttps" { + name = "allowHttpHttps" network = google_compute_network.vpc.id allow { @@ -37,8 +37,8 @@ resource "google_compute_firewall" "allow_http-https" { target_tags = ["web"] } -resource "google_compute_firewall" "allow_ssh" { - name = "allow-ssh" +resource "google_compute_firewall" "allowSsh" { + name = "allowSsh" network = google_compute_network.vpc.id allow { @@ -51,7 +51,7 @@ resource "google_compute_firewall" "allow_ssh" { } -resource "google_compute_firewall" "front-to-back" { +resource "google_compute_firewall" "frontToBack" { name = "front-to-back" network = google_compute_network.vpc.id @@ -64,8 +64,8 @@ resource "google_compute_firewall" "front-to-back" { target_tags = ["backend"] } -resource "google_compute_firewall" "back-to-db" { - name = "back-to-db" +resource "google_compute_firewall" "backToDb" { + name = "backToDb" network = google_compute_network.vpc.id allow {