forked from pierront/but3-iac
output dev
This commit is contained in:
@@ -1,59 +1,28 @@
|
|||||||
|
output "ip_internes" {
|
||||||
|
value = module.compute.ip_internes
|
||||||
|
}
|
||||||
|
|
||||||
|
output "ip_public_frontend" {
|
||||||
|
value = module.compute.ip_public_frontend
|
||||||
|
}
|
||||||
|
|
||||||
|
output "nom_instances" {
|
||||||
|
value = module.compute.nom_instances
|
||||||
|
}
|
||||||
|
|
||||||
output "service_account_email" {
|
output "service_account_email" {
|
||||||
description = "Email du compte de service Terraform"
|
value = module.iam.service_account_email
|
||||||
value = google_service_account.terraform_sa.email
|
|
||||||
}
|
}
|
||||||
|
|
||||||
output "service_account_key" {
|
output "service_account_key" {
|
||||||
description = "Clé privée du compte de service Terraform"
|
|
||||||
value = google_service_account_key.terraform_sa_key.private_key
|
|
||||||
sensitive = true
|
sensitive = true
|
||||||
|
value = module.iam.service_account_key
|
||||||
}
|
}
|
||||||
|
|
||||||
output "private_ips" {
|
output "vpc" {
|
||||||
description = "IP internes du frontend, backend et database"
|
value = module.network.vpc
|
||||||
value = {
|
|
||||||
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" {
|
|
||||||
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" {
|
output "subnets" {
|
||||||
description = "IDs des subnets du VPC"
|
value = module.network.subnets
|
||||||
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