2024-12-06 14:38:29 +01:00
|
|
|
output "ip_instance" {
|
|
|
|
value = {
|
2024-12-06 16:27:41 +01:00
|
|
|
frontend = google_compute_instance.vm_front.network_interface.0.network_ip,
|
|
|
|
backend = google_compute_instance.vm_back.network_interface.0.network_ip,
|
2024-12-06 14:38:29 +01:00
|
|
|
database = google_compute_instance.vm_db.network_interface.0.network_ip
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "frontend_public_ip" {
|
|
|
|
value = google_compute_instance.vm_front.network_interface.0.access_config.0.nat_ip
|
|
|
|
}
|
|
|
|
|
|
|
|
output "name_instance" {
|
|
|
|
value = {
|
2024-12-06 16:27:41 +01:00
|
|
|
frontend = google_compute_instance.vm_front.name,
|
|
|
|
backend = google_compute_instance.vm_back.name,
|
2024-12-06 14:38:29 +01:00
|
|
|
database = google_compute_instance.vm_db.name
|
|
|
|
}
|
|
|
|
}
|