forked from pierront/but3-iac
42 lines
1.0 KiB
HCL
42 lines
1.0 KiB
HCL
output "ip_internes" {
|
|
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.value
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
output "service_account_email" {
|
|
description = "Service account email."
|
|
value = google_service_account.service_account.email
|
|
}
|
|
|
|
output "service_account_key" {
|
|
description = "Service account key."
|
|
sensitive = true
|
|
value = google_service_account_key.mykey.private_key
|
|
}
|
|
|
|
output "vpc" {
|
|
value = google_compute_network.vpc_terraform.id
|
|
}
|
|
|
|
output "subnets" {
|
|
value = {
|
|
frontend = google_compute_subnetwork.subnet_frontend.id
|
|
backend = google_compute_subnetwork.subnet_backend.id
|
|
database = google_compute_subnetwork.subnet_database.id
|
|
}
|
|
} |