2024-12-05 09:42:58 +01:00
|
|
|
output "instances_internal_ips" {
|
|
|
|
value = {
|
|
|
|
frontend = google_compute_instance.tp07-frontend.network_interface.0.network_ip,
|
|
|
|
backend = google_compute_instance.tp07-backend.network_interface.0.network_ip,
|
|
|
|
database = google_compute_instance.tp07-database.network_interface.0.network_ip
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "instances_names" {
|
|
|
|
value = {
|
|
|
|
frontend = google_compute_instance.tp07-frontend.name,
|
|
|
|
backend = google_compute_instance.tp07-backend.name,
|
|
|
|
database = google_compute_instance.tp07-database.name
|
|
|
|
}
|
2024-12-06 14:29:33 +01:00
|
|
|
}
|
|
|
|
|
2024-12-06 15:54:45 +01:00
|
|
|
output "frontend_public_ip" {
|
|
|
|
value = google_compute_instance.tp07-frontend.network_interface.0.access_config.0.nat_ip
|
|
|
|
}
|