This commit is contained in:
Guillaume VALLAT 2024-12-06 15:40:52 +01:00
parent 01cad1f86a
commit d4b45200d8
3 changed files with 19 additions and 2 deletions

View File

@ -30,6 +30,9 @@ module "compute" {
source = "../../modules/compute"
# Variables d'entrée
sub1 = module.network.subnet["frontend"]
sub2 = module.network.subnet["backend"]
sub3 = module.network.subnet["database"]
# Autres variables spécifiques au module
zone = var.zone

View File

@ -51,3 +51,4 @@ variable "zone" {
type = string
default = "europe-west4-a"
}

View File

@ -6,7 +6,20 @@ variable "instance_type" {
variable "zone" {
description = "zone"
type = string
default = "europe-west4-a"
}
variable "sub1"{
description = "subnet1 frontend"
type = string
}
variable "sub2"{
description = "subnet2 backend"
type = string
}
variable "sub3"{
description = "subnet3 database"
type = string
}