forked from pierront/but3-iac
test
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user