fin de la partie 4

This commit is contained in:
2025-12-04 10:22:29 +01:00
parent 76a2346e3d
commit 597ad27a69

View File

@@ -12,31 +12,31 @@ output "ip_public_frontend" {
output "nom_instances" { output "nom_instances" {
value = { value = {
frontend = google_compute_instance.vm_frontend.name frontend = module.compute.nom_instances.frontend
backend = google_compute_instance.vm_backend.name backend = module.compute.nom_instances.backend
database = google_compute_instance.vm_database.name database = module.compute.nom_instances.database
} }
} }
output "service_account_email" { output "service_account_email" {
description = "Service account email." description = "Service account email."
value = google_service_account.service_account.email value = module.iam.service_account_email.value
} }
output "service_account_key" { output "service_account_key" {
description = "Service account key." description = "Service account key."
sensitive = true sensitive = true
value = google_service_account_key.mykey.private_key value = module.iam.service_account_key.value
} }
output "vpc" { output "vpc" {
value = google_compute_network.vpc_terraform.id value = module.network.vpc.value
} }
output "subnets" { output "subnets" {
value = { value = {
frontend = google_compute_subnetwork.subnet_frontend.id frontend = module.network.subnet.frontend
backend = google_compute_subnetwork.subnet_backend.id backend = module.network.subnet.backend
database = google_compute_subnetwork.subnet_database.id database = module.network.subnet.database
} }
} }