diff --git a/terraform/modules/compute/outputs.tf b/terraform/modules/compute/outputs.tf index e69de29..b04f40f 100644 --- a/terraform/modules/compute/outputs.tf +++ b/terraform/modules/compute/outputs.tf @@ -0,0 +1,15 @@ +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 + } +} \ No newline at end of file diff --git a/terraform/modules/network/outputs.tf b/terraform/modules/network/outputs.tf index 93de4cd..0187f7f 100644 --- a/terraform/modules/network/outputs.tf +++ b/terraform/modules/network/outputs.tf @@ -4,8 +4,8 @@ output "vpc_id" { output "subnets_ids" { value = { - frontend = google_compute_subnetwork.tp07-frontend.id - backend = google_compute_subnetwork.tp07-backend.id + frontend = google_compute_subnetwork.tp07-frontend.id, + backend = google_compute_subnetwork.tp07-backend.id, database = google_compute_subnetwork.tp07-database.id } } \ No newline at end of file