DEV5.6_TP07/terraform/modules/compute/outputs.tf

15 lines
543 B
HCL

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
}
}