Correction de l'utilisation des output
This commit is contained in:
parent
885643d5a7
commit
ffce64cc14
@ -29,10 +29,10 @@ module "network" {
|
|||||||
module "compute" {
|
module "compute" {
|
||||||
source = "../../modules/compute"
|
source = "../../modules/compute"
|
||||||
|
|
||||||
#autres variables spécifiques au module
|
#autres variables spécifiques au module
|
||||||
instance_type = var.instance_type
|
instance_type = var.instance_type
|
||||||
zone = var.zone
|
zone = var.zone
|
||||||
frontend_subnet = var.frontend_subnet
|
frontend_subnet = module.network.subnet_id["frontend"]
|
||||||
backend_subnet = var.backend_subnet
|
backend_subnet = module.network.subnet_id["backend"]
|
||||||
database_subnet = var.database_subnet
|
database_subnet = module.network.subnet_id["database"]
|
||||||
}
|
}
|
@ -45,21 +45,3 @@ variable "zone" {
|
|||||||
type = string
|
type = string
|
||||||
default = "europe-west4-b"
|
default = "europe-west4-b"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "frontend_subnet" {
|
|
||||||
description = "sous réseau frontend"
|
|
||||||
type = string
|
|
||||||
default = "frontend"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "backend_subnet" {
|
|
||||||
description = "sous réseau backend"
|
|
||||||
type = string
|
|
||||||
default = "backend"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "database_subnet" {
|
|
||||||
description = "sous réseau database"
|
|
||||||
type = string
|
|
||||||
default = "database"
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user