TP_Terraform/terraform/modules/compute/outputs.tf

19 lines
619 B
Terraform
Raw Normal View History

2024-12-06 16:35:48 +01:00
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 = {
2024-12-06 16:38:27 +01:00
frontend = google_compute_instance.vm-front.network_interface.0.network_ip
backend = google_compute_instance.vm-back.network_interface.0.network_ip
2024-12-06 16:41:13 +01:00
database = google_compute_instance.vm-database.network_interface.0.network_ip
2024-12-06 16:35:48 +01:00
}
}
output "frontend_public_ip" {
2024-12-06 16:38:27 +01:00
value = google_compute_instance.vm-front.network_interface.0.access_config.0.nat_ip
2024-12-06 16:35:48 +01:00
}