forked from pierront/but3-iac
marche ptn
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
output "vpc_id" {
|
||||
description = "ID du VPC créé"
|
||||
value = google_compute_network.custom_vpc.id
|
||||
# À vous d'exposer :
|
||||
# 1. L'ID du VPC
|
||||
# 2. Les IDs des sous-réseaux sous forme de map
|
||||
|
||||
output "vpc_terraform_output" {
|
||||
value = google_compute_network.vpc_terraform.id
|
||||
}
|
||||
|
||||
output "subnet_ids" {
|
||||
description = "IDs des sous-réseaux"
|
||||
value = {
|
||||
frontend = google_compute_subnetwork.frontend.id
|
||||
backend = google_compute_subnetwork.backend.id
|
||||
database = google_compute_subnetwork.database.id
|
||||
}
|
||||
}
|
||||
output "list_id" {
|
||||
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