19 lines
613 B
HCL
19 lines
613 B
HCL
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 = {
|
|
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
|
|
}
|
|
}
|
|
|
|
output "frontend_public_ip" {
|
|
value = google_compute_instance.vm-front.network_interface.0.access_config.0.nat_ip
|
|
} |