From 3f39313d9ca47b604218fa78090faf136e12334d Mon Sep 17 00:00:00 2001 From: thuret Date: Wed, 4 Dec 2024 16:28:08 +0100 Subject: [PATCH] update network --- terraform/modules/network/main.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/terraform/modules/network/main.tf b/terraform/modules/network/main.tf index 558a3fa..636e402 100644 --- a/terraform/modules/network/main.tf +++ b/terraform/modules/network/main.tf @@ -1,26 +1,26 @@ #VPC -resource "google_compute_network" "vpc" { +resource "google_compute_network" "tp07" { name = "tp07" auto_create_subnetworks = false } -resource "google_compute_subnetwork" "subnet" { +resource "google_compute_subnetwork" "tp07-frontend" { name = "tp07-frontend" network = google_compute_network.vpc.id ip_cidr_range = var.frontend_cidr region = "europe-west4" } -resource "google_compute_subnetwork" "subnet" { +resource "google_compute_subnetwork" "tp07-backend" { name = "tp07-backend" network = google_compute_network.vpc.id ip_cidr_range = var.backend_cidr region = "europe-west4" } -resource "google_compute_subnetwork" "subnet" { +resource "google_compute_subnetwork" "tp07-database" { name = "tp07-database" network = google_compute_network.vpc.id ip_cidr_range = var.database_cidr