forked from pierront/but3-iac
output dev
This commit is contained in:
@@ -1,40 +1,59 @@
|
||||
output "service_account_email" {
|
||||
value = module.iam.terraform_sa_email
|
||||
description = "Email du compte de service Terraform"
|
||||
value = google_service_account.terraform_sa.email
|
||||
}
|
||||
|
||||
output "service_account_key" {
|
||||
value = module.iam.terraform_sa_key
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "vpc_id" {
|
||||
value = module.network.vpc_id
|
||||
}
|
||||
|
||||
output "subnets" {
|
||||
value = {
|
||||
frontend = module.network.subnet_frontend_id
|
||||
backend = module.network.subnet_backend_id
|
||||
database = module.network.subnet_database_id
|
||||
}
|
||||
}
|
||||
|
||||
output "instance_names" {
|
||||
value = [
|
||||
module.compute.frontend_name,
|
||||
module.compute.backend_name,
|
||||
module.compute.database_name
|
||||
]
|
||||
description = "Clé privée du compte de service Terraform"
|
||||
value = google_service_account_key.terraform_sa_key.private_key
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
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
|
||||
frontend = google_compute_instance.frontend.network_interface[0].network_ip
|
||||
backend = google_compute_instance.backend.network_interface[0].network_ip
|
||||
database = google_compute_instance.database.network_interface[0].network_ip
|
||||
}
|
||||
}
|
||||
|
||||
output "frontend_public_ip" {
|
||||
value = module.compute.frontend_public_ip
|
||||
description = "IP publique du frontend"
|
||||
value = google_compute_instance.frontend.network_interface[0].access_config[0].nat_ip
|
||||
}
|
||||
|
||||
output "instance_names" {
|
||||
description = "Noms des instances compute"
|
||||
value = [
|
||||
google_compute_instance.frontend.name,
|
||||
google_compute_instance.backend.name,
|
||||
google_compute_instance.database.name
|
||||
]
|
||||
}
|
||||
|
||||
output "vpc_terraform_output" {
|
||||
value = google_compute_network.vpc_terraform.id
|
||||
}
|
||||
|
||||
output "list_id" {
|
||||
value = {
|
||||
frontend = google_compute_subnetwork.subnet_frontend.id
|
||||
backend = google_compute_subnetwork.subnet_backend.id
|
||||
database = google_compute_subnetwork.subnet_database.id
|
||||
}
|
||||
}
|
||||
|
||||
output "vpc_id" {
|
||||
description = "ID du VPC créé"
|
||||
value = google_compute_network.vpc_terraform.id
|
||||
}
|
||||
|
||||
output "subnets" {
|
||||
description = "IDs des subnets du VPC"
|
||||
value = {
|
||||
frontend = google_compute_subnetwork.subnet_frontend.id
|
||||
backend = google_compute_subnetwork.subnet_backend.id
|
||||
database = google_compute_subnetwork.subnet_database.id
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user