diff --git a/terraform/environments/dev/outputs.tf b/terraform/environments/dev/outputs.tf index c17571f..7efd6fe 100644 --- a/terraform/environments/dev/outputs.tf +++ b/terraform/environments/dev/outputs.tf @@ -25,3 +25,7 @@ output "instances_names" { database = module.compute.instances_names.database } } + +output "frontend_public_ip" { + value = module.compute.frontend_public_ip +} diff --git a/terraform/modules/compute/outputs.tf b/terraform/modules/compute/outputs.tf index 04a628f..3b86919 100644 --- a/terraform/modules/compute/outputs.tf +++ b/terraform/modules/compute/outputs.tf @@ -14,3 +14,6 @@ output "instances_names" { } } +output "frontend_public_ip" { + value = google_compute_instance.tp07-frontend.network_interface.0.access_config.0.nat_ip +} \ No newline at end of file