19 lines
669 B
HCL
19 lines
669 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_public_ip" {
|
|
value = google_compute_instance.tp07-frontend.network_interface.0.access_config.0.nat_ip
|
|
} |