forked from pierront/but3-iac
47 lines
1.2 KiB
HCL
47 lines
1.2 KiB
HCL
output "service_account_email" {
|
|
description = "Email du compte de service Terraform"
|
|
value = module.iam.terraform_sa_email
|
|
}
|
|
|
|
output "service_account_key" {
|
|
description = "Clé privée du compte de service Terraform"
|
|
value = module.iam.terraform_sa_key
|
|
sensitive = true
|
|
}
|
|
|
|
output "vpc_id" {
|
|
description = "ID du VPC créé"
|
|
value = module.network.vpc_id
|
|
}
|
|
|
|
output "subnets" {
|
|
description = "IDs des subnets du VPC"
|
|
value = {
|
|
frontend = module.network.subnet_frontend_id
|
|
backend = module.network.subnet_backend_id
|
|
database = module.network.subnet_database_id
|
|
}
|
|
}
|
|
|
|
output "instance_names" {
|
|
description = "Noms des instances compute"
|
|
value = [
|
|
module.compute.frontend_name,
|
|
module.compute.backend_name,
|
|
module.compute.database_name
|
|
]
|
|
}
|
|
|
|
output "private_ips" {
|
|
description = "IP internes du frontend, backend et database"
|
|
value = {
|
|
frontend = module.compute.frontend_private_ip
|
|
backend = module.compute.backend_private_ip
|
|
database = module.compute.database_private_ip
|
|
}
|
|
}
|
|
|
|
output "frontend_public_ip" {
|
|
description = "IP publique du frontend"
|
|
value = module.compute.frontend_public_ip
|
|
} |