diff --git a/terraform/environments/dev/outputs.tf b/terraform/environments/dev/outputs.tf index e69de29..631e214 100644 --- a/terraform/environments/dev/outputs.tf +++ b/terraform/environments/dev/outputs.tf @@ -0,0 +1,39 @@ +output "vpc_id" { + value = module.network.vpc_id +} + +output "subnet_id" { + value = { + frontend = module.network.subnet_id.frontend, + backend = module.network.subnet_id.backend, + database = module.network.subnet_id.database + } +} + +output "ip_instance" { + value = { + frontend = module.compute.ip_instance.frontend, + backend = module.compute.ip_instance.backend, + database = module.compute.ip_instance.database + } +} + +output "frontend_public_ip" { + value = module.compute.frontend_public_ip +} + +output "name_instance" { + value = { + frontend = module.compute.name_instance.frontend, + backend = module.compute.name_instance.backend, + database = module.compute.name_instance.database + } +} + +output "service_account_email" { + value = module.iam.service_account_email +} + +output "service_account_key" { + value = module.iam.service_account_key +} \ No newline at end of file diff --git a/terraform/modules/compute/outputs.tf b/terraform/modules/compute/outputs.tf index b41d4c2..05e6982 100644 --- a/terraform/modules/compute/outputs.tf +++ b/terraform/modules/compute/outputs.tf @@ -1,7 +1,7 @@ output "ip_instance" { value = { - frontend = google_compute_instance.vm_front.network_interface.0.network_ip - backend = google_compute_instance.vm_back.network_interface.0.network_ip + frontend = google_compute_instance.vm_front.network_interface.0.network_ip, + backend = google_compute_instance.vm_back.network_interface.0.network_ip, database = google_compute_instance.vm_db.network_interface.0.network_ip } } @@ -12,8 +12,8 @@ output "frontend_public_ip" { output "name_instance" { value = { - frontend = google_compute_instance.vm_front.name - backend = google_compute_instance.vm_back.name + frontend = google_compute_instance.vm_front.name, + backend = google_compute_instance.vm_back.name, database = google_compute_instance.vm_db.name } } \ No newline at end of file diff --git a/terraform/modules/network/outputs.tf b/terraform/modules/network/outputs.tf index 2130076..1899451 100644 --- a/terraform/modules/network/outputs.tf +++ b/terraform/modules/network/outputs.tf @@ -5,8 +5,8 @@ output "vpc_id" { output "subnet_id" { value = { - frontend = google_compute_subnetwork.frontend.id - backend = google_compute_subnetwork.backend.id + frontend = google_compute_subnetwork.frontend.id, + backend = google_compute_subnetwork.backend.id, database = google_compute_subnetwork.database.id } } \ No newline at end of file