2024-12-06 17:24:57 +01:00
|
|
|
output "internal_ips" {
|
|
|
|
value = {
|
|
|
|
frontend = google_compute_instance.vm_frontend.network_interface.0.network_ip
|
|
|
|
backend = google_compute_instance.vm_backend.network_interface.0.network_ip
|
|
|
|
database = google_compute_instance.vm_database.network_interface.0.network_ip
|
|
|
|
}
|
|
|
|
description = "Internal ips of instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
output "public_ip" {
|
|
|
|
value = google_compute_instance.vm_frontend.network_interface.0.access_config.0.nat_ip
|
|
|
|
}
|
|
|
|
|
|
|
|
output "instance_names" {
|
|
|
|
value = {
|
|
|
|
frontend = google_compute_instance.vm_frontend.name
|
|
|
|
backend = google_compute_instance.vm_backend.name
|
|
|
|
database = google_compute_instance.vm_database.name
|
|
|
|
}
|
|
|
|
description = "Name of instances"
|
|
|
|
}
|