This commit is contained in:
2024-12-06 16:31:21 +01:00
parent 9262123ee7
commit 12fc45995b
8 changed files with 28 additions and 27 deletions

View File

@@ -31,7 +31,7 @@ module "compute" {
source = "../../modules/compute"
instance_type = "e2-micro"
zone ="europe-west4-a"
zone ="europe-west9-c"
frontend_subnet_id = module.network.id_subnetwork["frontend"]
backend_subnet_id = module.network.id_subnetwork["backend"]
database_subnet_id = module.network.id_subnetwork["database"]

View File

@@ -1,48 +1,41 @@
#- project_name (string)
variable "project_name" {
description = "Nom du projet"
type = string
default = "newtp-443913"
}
#- project_id (string)
variable "project_id" {
description = "ID du projet"
description = "projet id"
type = string
default = "newtp-443913"
}
# - region (string)
variable "region" {
description = "Région du projet"
description = "Region"
type = string
default = "europe-west4"
default = "europe-west9"
}
# - frontend_cidr (string)
variable "frontend_cidr" {
description = "cidr du frontend"
type = string
default = "10.0.1.0/24"
}
# - backend_cidr (string)
variable "backend_cidr" {
description = "cidr du backend"
type = string
default = "10.0.2.0/24"
}
# - database_cidr (string)
variable "database_cidr" {
description = "cidr du database"
description = "cidr du db"
type = string
default = "10.0.3.0/24"
}
# - ssh_source_ranges (string)
variable "ssh_source_ranges" {
description = "Accès à internet"
description = "ssh"
type = string
default = "0.0.0.0/0"
}