From 1336027ecaa341d94600a74851834f0a207820b1 Mon Sep 17 00:00:00 2001 From: Darius Date: Fri, 6 Dec 2024 15:56:11 +0100 Subject: [PATCH] fix --- tp-cloud/terraform/environments/dev/variables.tf | 2 +- tp-cloud/terraform/modules/compute/main.tf | 2 ++ tp-cloud/terraform/modules/compute/variables.tf | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tp-cloud/terraform/environments/dev/variables.tf b/tp-cloud/terraform/environments/dev/variables.tf index c8b4d9e..7c13073 100644 --- a/tp-cloud/terraform/environments/dev/variables.tf +++ b/tp-cloud/terraform/environments/dev/variables.tf @@ -13,7 +13,7 @@ variable "project_id" { variable "region" { description = "RĂ©gion du projet" type = string - default = "europe-west4" + default = "europe-west9" } variable "frontend_cidr" { diff --git a/tp-cloud/terraform/modules/compute/main.tf b/tp-cloud/terraform/modules/compute/main.tf index 07e3161..2c16e80 100644 --- a/tp-cloud/terraform/modules/compute/main.tf +++ b/tp-cloud/terraform/modules/compute/main.tf @@ -59,6 +59,8 @@ resource "google_compute_instance" "database" { network_interface { subnetwork = var.database_subnet_id + access_config {} + } tags = ["database", "ssh"] diff --git a/tp-cloud/terraform/modules/compute/variables.tf b/tp-cloud/terraform/modules/compute/variables.tf index 6840a39..5897a1e 100644 --- a/tp-cloud/terraform/modules/compute/variables.tf +++ b/tp-cloud/terraform/modules/compute/variables.tf @@ -7,7 +7,7 @@ variable "instance_type" { variable "zone" { description = "zone des instances" type = string - default = "europe-west4" + default = "europe-west9-c" } variable "frontend_subnet_id" {