DEV5.6_TP07/terraform/modules/compute/outputs.tf
2024-12-06 14:29:33 +01:00

19 lines
671 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
}
}
output "frontend_ip" {
value = google_compute_instance.tp07-frontend.network_interface.0.access_config.0.assigned_nat_ip
}