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" {