forked from pierront/but3-iac
output dev
This commit is contained in:
@@ -1,28 +1,52 @@
|
||||
output "ip_internes" {
|
||||
value = module.compute.ip_internes
|
||||
# IP internes des instances
|
||||
output "private_ips" {
|
||||
description = "IP internes du frontend, backend et database"
|
||||
value = {
|
||||
frontend = module.compute.ip_internes.frontend
|
||||
backend = module.compute.ip_internes.backend
|
||||
database = module.compute.ip_internes.database
|
||||
}
|
||||
}
|
||||
|
||||
output "ip_public_frontend" {
|
||||
value = module.compute.ip_public_frontend
|
||||
# IP publique du frontend
|
||||
output "frontend_public_ip" {
|
||||
description = "IP publique du frontend"
|
||||
value = module.compute.ip_public_frontend
|
||||
}
|
||||
|
||||
output "nom_instances" {
|
||||
value = module.compute.nom_instances
|
||||
# Noms des instances
|
||||
output "instance_names" {
|
||||
description = "Noms des instances compute"
|
||||
value = [
|
||||
module.compute.nom_instances.frontend,
|
||||
module.compute.nom_instances.backend,
|
||||
module.compute.nom_instances.database
|
||||
]
|
||||
}
|
||||
|
||||
# Service Account
|
||||
output "service_account_email" {
|
||||
value = module.iam.service_account_email
|
||||
description = "Email du compte de service Terraform"
|
||||
value = module.iam.service_account_email
|
||||
}
|
||||
|
||||
output "service_account_key" {
|
||||
sensitive = true
|
||||
value = module.iam.service_account_key
|
||||
description = "Clé privée du compte de service Terraform"
|
||||
sensitive = true
|
||||
value = module.iam.service_account_key
|
||||
}
|
||||
|
||||
output "vpc" {
|
||||
value = module.network.vpc
|
||||
# VPC et subnets
|
||||
output "vpc_id" {
|
||||
description = "ID du VPC créé"
|
||||
value = module.network.vpc
|
||||
}
|
||||
|
||||
output "subnets" {
|
||||
value = module.network.subnets
|
||||
description = "IDs des subnets du VPC"
|
||||
value = {
|
||||
frontend = module.network.subnets.frontend
|
||||
backend = module.network.subnets.backend
|
||||
database = module.network.subnets.database
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user