forked from pierront/but3-iac
ajout des configs terraform
This commit is contained in:
@@ -1,18 +1,15 @@
|
||||
output "vpc_id" {
|
||||
description = "L'ID du VPC créé."
|
||||
value = google_compute_network.vpc_network.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 "subnets_map" {
|
||||
description = "Map des IDs des sous-réseaux."
|
||||
value = {
|
||||
frontend = google_compute_subnetwork.frontend_subnet.id
|
||||
backend = google_compute_subnetwork.backend_subnet.id
|
||||
database = google_compute_subnetwork.database_subnet.id
|
||||
}
|
||||
}
|
||||
|
||||
output "network_name" {
|
||||
description = "Le nom du VPC créé."
|
||||
value = google_compute_network.vpc_network.name
|
||||
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