This commit is contained in:
2025-12-04 11:16:29 +01:00
parent 47814729f3
commit b81682e58e
12 changed files with 176 additions and 296 deletions

View File

@@ -1,22 +1,12 @@
############################################
# 1. ID du VPC
############################################
output "vpc_id" {
description = "ID du VPC créé."
value = google_compute_network.vpc.id
output "vpc" {
value = google_compute_network.vpc_terraform.id
}
############################################
# 2. IDs des sous-réseaux (map)
############################################
output "subnet_ids" {
description = "Map des IDs des sous-réseaux : frontend, backend, database."
value = {
frontend = google_compute_subnetwork.frontend.id
backend = google_compute_subnetwork.backend.id
database = google_compute_subnetwork.database.id
}
}
output "subnets" {
value = {
frontend = google_compute_subnetwork.subnet_frontend.id
backend = google_compute_subnetwork.subnet_backend.id
database = google_compute_subnetwork.subnet_database.id
}
}