23 lines
666 B
HCL
23 lines
666 B
HCL
output "internal_ips" {
|
|
value = {
|
|
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
|
|
}
|
|
description = "Internal ips of instances"
|
|
}
|
|
|
|
output "public_ip" {
|
|
value = google_compute_instance.vm_front.network_interface.0.access_config.0.nat_ip
|
|
}
|
|
|
|
output "instance_names" {
|
|
value = {
|
|
frontend = google_compute_instance.vm_front.name
|
|
backend = google_compute_instance.vm_back.name
|
|
database = google_compute_instance.vm_db.name
|
|
}
|
|
description = "Name of instances"
|
|
}
|
|
|