diff --git a/terraform/modules/network/main.tf b/terraform/modules/network/main.tf index 090c421..7045851 100644 --- a/terraform/modules/network/main.tf +++ b/terraform/modules/network/main.tf @@ -3,21 +3,21 @@ resource "google_compute_network" "vpc" { auto_create_subnetworks = false } -resource "google_compute_subnetwork" "subnet" { +resource "google_compute_subnetwork" "frontend" { name = "frontend" network = google_compute_network.vpc.id ip_cidr_range = var.frontend_cidr region = var.region } -resource "google_compute_subnetwork" "subnet" { +resource "google_compute_subnetwork" "backend" { name = "backend" network = google_compute_network.vpc.id ip_cidr_range = var.backend_cidr region = var.region } -resource "google_compute_subnetwork" "subnet" { +resource "google_compute_subnetwork" "database" { name = "database" network = google_compute_network.vpc.id ip_cidr_range = var.database_cidr