This commit is contained in:
Yanis DARIUS 2024-12-06 15:56:11 +01:00
parent 75e26b2c72
commit 1336027eca
3 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,7 @@ variable "project_id" {
variable "region" { variable "region" {
description = "Région du projet" description = "Région du projet"
type = string type = string
default = "europe-west4" default = "europe-west9"
} }
variable "frontend_cidr" { variable "frontend_cidr" {

View File

@ -59,6 +59,8 @@ resource "google_compute_instance" "database" {
network_interface { network_interface {
subnetwork = var.database_subnet_id subnetwork = var.database_subnet_id
access_config {}
} }
tags = ["database", "ssh"] tags = ["database", "ssh"]

View File

@ -7,7 +7,7 @@ variable "instance_type" {
variable "zone" { variable "zone" {
description = "zone des instances" description = "zone des instances"
type = string type = string
default = "europe-west4" default = "europe-west9-c"
} }
variable "frontend_subnet_id" { variable "frontend_subnet_id" {