forked from pierront/but3-iac
ajout du network
This commit is contained in:
16
terraform/modules/network/outputs.tf
Normal file
16
terraform/modules/network/outputs.tf
Normal file
@@ -0,0 +1,16 @@
|
||||
// 1. ID du VPC
|
||||
output "vpc_id" {
|
||||
description = "ID du VPC (network)"
|
||||
value = google_compute_network.vpc.id
|
||||
}
|
||||
|
||||
// 2. IDs des sous-réseaux sous forme de map
|
||||
output "subnet_ids" {
|
||||
description = "IDs des sous-réseaux par rôle"
|
||||
value = {
|
||||
frontend = google_compute_subnetwork.frontend.id
|
||||
backend = google_compute_subnetwork.backend.id
|
||||
database = google_compute_subnetwork.database.id
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user