2024-12-06 15:17:20 +01:00
|
|
|
output "instance_names" {
|
2024-12-06 16:31:21 +01:00
|
|
|
description = "Nom instance"
|
2024-12-06 15:17:20 +01:00
|
|
|
value = {
|
|
|
|
frontend = google_compute_instance.frontend.name
|
|
|
|
backend = google_compute_instance.backend.name
|
|
|
|
database = google_compute_instance.database.name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "frontend_public_ip" {
|
|
|
|
value = google_compute_instance.frontend.network_interface[0].access_config[0].nat_ip
|
|
|
|
}
|
|
|
|
|
|
|
|
output "private_ip" {
|
2024-12-06 16:31:21 +01:00
|
|
|
description = "IP internes"
|
2024-12-06 15:17:20 +01:00
|
|
|
value = {
|
|
|
|
frontend = google_compute_instance.frontend.network_interface[0].network_ip
|
|
|
|
backend = google_compute_instance.backend.network_interface[0].network_ip
|
|
|
|
database = google_compute_instance.database.network_interface[0].network_ip
|
|
|
|
}
|
|
|
|
}
|