2025-12-04 09:32:09 +01:00
|
|
|
# output "instance_ip" {
|
|
|
|
|
# value = google_compute_instance.main.network_interface[0].access_config[0].nat_ip
|
|
|
|
|
# }
|
2025-12-03 17:10:48 +01:00
|
|
|
|
2025-12-04 09:59:27 +01:00
|
|
|
output "vpc_terraform" {
|
|
|
|
|
description = "ID du VPC créé"
|
|
|
|
|
value = google_compute_network.vpc.id
|
2025-12-03 17:10:48 +01:00
|
|
|
}
|
|
|
|
|
|
2025-12-04 09:59:27 +01:00
|
|
|
output "subnet_ids" {
|
|
|
|
|
description = "Map des IDs des sous-réseaux"
|
2025-12-03 17:10:48 +01:00
|
|
|
value = {
|
2025-12-04 09:59:27 +01:00
|
|
|
|
|
|
|
|
frontend = google_compute_subnetwork.frontend.id
|
|
|
|
|
backend = google_compute_subnetwork.backend.id
|
|
|
|
|
database = google_compute_subnetwork.database.id
|
2025-12-03 17:10:48 +01:00
|
|
|
}
|
2025-12-04 09:59:27 +01:00
|
|
|
|
2025-12-03 17:10:48 +01:00
|
|
|
}
|