forked from pierront/but3-iac
Correctif Network + Compute qui nage
This commit is contained in:
19
tp-cloud/terraform/modules/compute/outputs.tf.save
Normal file
19
tp-cloud/terraform/modules/compute/outputs.tf.save
Normal file
@@ -0,0 +1,19 @@
|
||||
output "ip-internes" {
|
||||
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 "id-public-frontend" {
|
||||
value = google_compute_instance.frontend.network_interface[0].access_config[0].nat_ip
|
||||
}
|
||||
|
||||
output "instances-names" {
|
||||
value = {
|
||||
frontend =
|
||||
backend =
|
||||
database =
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user