This commit is contained in:
Florian GENIQUE 2024-12-06 14:55:30 +01:00
parent 0f57df0692
commit a039557abb
3 changed files with 18 additions and 2 deletions

View File

@ -39,8 +39,12 @@ module "compute" {
source = "../../modules/compute" source = "../../modules/compute"
# Variables d'entrée # Variables d'entrée
instance-type = "e2-micro"
zone = "europe-west4-a"
# Autres variables spécifiques au module # Autres variables spécifiques au module
zone = var.zone frontend_subnet_id = module.network.id_subnetwork["frontend"]
instance_type = var.instance_type backend_subnet_id = module.network.id_subnetwork["backend"]
database_subnet_id = module.network.id_subnetwork["databse"]
} }

View File

@ -0,0 +1,12 @@
# Output d'un module
output "vpc_id" {
value = google_compute_network.vpc.id
}
output "subnet_ids" {
value = {
frontend = google_compute_subnetwork.subnet_front.id,
backend = google_compute_subnetwork.subnet_back.id,
database = google_compute_subnetwork.subnet_db.id
}
}

View File