2024-12-06 16:35:48 +01:00
|
|
|
output "instance_name" {
|
|
|
|
value = {
|
|
|
|
frontend = google_compute_instance.vm-front.name
|
|
|
|
backend = google_compute_instance.vm-back.name
|
|
|
|
database = google_compute_instance.vm-database.name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "ip_instance" {
|
|
|
|
value = {
|
2024-12-06 16:38:27 +01:00
|
|
|
frontend = google_compute_instance.vm-front.network_interface.0.network_ip
|
|
|
|
backend = google_compute_instance.vm-back.network_interface.0.network_ip
|
|
|
|
database = google_compute_instance.vm-db.network_interface.0.network_ip
|
2024-12-06 16:35:48 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output "frontend_public_ip" {
|
2024-12-06 16:38:27 +01:00
|
|
|
value = google_compute_instance.vm-front.network_interface.0.access_config.0.nat_ip
|
2024-12-06 16:35:48 +01:00
|
|
|
}
|