This commit is contained in:
2025-12-04 11:07:39 +01:00
parent a280f67196
commit be5dec853b
2 changed files with 10 additions and 21 deletions

View File

@@ -3,40 +3,29 @@ output "ip_internes" {
}
output "ip_public_frontend" {
value = module.compute.vm_frontend.network_interface[0].access_config[0].nat_ip
value = module.compute.ip_public_frontend
}
output "nom_instances" {
value = {
frontend = module.compute.nom_instances.vm_frontend
backend = google_compute_instance.vm_backend.name
database = google_compute_instance.vm_database.name
}
value = module.compute.nom_instances
}
output "service_account_email"{
description = "Service account email"
value = google.service.account.myaccount.email
value = module.iam.service_account_email
}
output "service_account_key"{
description = "Service key"
sensitive = true
value = google.service.account.mykey.private_key
value = module.iam.service_account_key
}
output "vpc_terraform" {
description = "ID du VPC créé"
value = google_compute_network.vpc.id
value = module.network.vpc_terraform
}
output "subnet_ids" {
description = "Map des IDs des sous-réseaux"
value = {
frontend = google_compute_subnetwork.frontend_network.id
backend = google_compute_subnetwork.backend_network.id
database = google_compute_subnetwork.database_network.id
}
value = module.network.subnet_ids
}