forked from pierront/but3-iac
fin de la partie 4
This commit is contained in:
@@ -12,31 +12,31 @@ output "ip_public_frontend" {
|
||||
|
||||
output "nom_instances" {
|
||||
value = {
|
||||
frontend = google_compute_instance.vm_frontend.name
|
||||
backend = google_compute_instance.vm_backend.name
|
||||
database = google_compute_instance.vm_database.name
|
||||
frontend = module.compute.nom_instances.frontend
|
||||
backend = module.compute.nom_instances.backend
|
||||
database = module.compute.nom_instances.database
|
||||
}
|
||||
}
|
||||
|
||||
output "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" {
|
||||
description = "Service account key."
|
||||
sensitive = true
|
||||
value = google_service_account_key.mykey.private_key
|
||||
value = module.iam.service_account_key.value
|
||||
}
|
||||
|
||||
output "vpc" {
|
||||
value = google_compute_network.vpc_terraform.id
|
||||
value = module.network.vpc.value
|
||||
}
|
||||
|
||||
output "subnets" {
|
||||
value = {
|
||||
frontend = google_compute_subnetwork.subnet_frontend.id
|
||||
backend = google_compute_subnetwork.subnet_backend.id
|
||||
database = google_compute_subnetwork.subnet_database.id
|
||||
frontend = module.network.subnet.frontend
|
||||
backend = module.network.subnet.backend
|
||||
database = module.network.subnet.database
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user