forked from pierront/but3-iac
fin de la partie 4
This commit is contained in:
@@ -18,24 +18,15 @@ output "nom_instances" {
|
||||
}
|
||||
}
|
||||
|
||||
output "ip_internes" {
|
||||
value = {
|
||||
frontend = google_compute_instance.vm_frontend.network_interface[0].network_ip
|
||||
backend = google_compute_instance.vm_backend.network_interface[0].network_ip
|
||||
database = google_compute_instance.vm_database.network_interface[0].network_ip
|
||||
}
|
||||
output "service_account_email" {
|
||||
description = "Service account email."
|
||||
value = google_service_account.service_account.email
|
||||
}
|
||||
|
||||
output "ip_public_frontend" {
|
||||
value = google_compute_instance.vm_frontend.network_interface[0].access_config[0].nat_ip
|
||||
}
|
||||
|
||||
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_key" {
|
||||
description = "Service account key."
|
||||
sensitive = true
|
||||
value = google_service_account_key.mykey.private_key
|
||||
}
|
||||
|
||||
output "vpc" {
|
||||
|
||||
Reference in New Issue
Block a user