update network&compute outputs

This commit is contained in:
Come THURET 2024-12-05 09:42:58 +01:00
parent 72185086d9
commit 5eb4eec439
2 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,15 @@
output "instances_internal_ips" {
value = {
frontend = google_compute_instance.tp07-frontend.network_interface.0.network_ip,
backend = google_compute_instance.tp07-backend.network_interface.0.network_ip,
database = google_compute_instance.tp07-database.network_interface.0.network_ip
}
}
output "instances_names" {
value = {
frontend = google_compute_instance.tp07-frontend.name,
backend = google_compute_instance.tp07-backend.name,
database = google_compute_instance.tp07-database.name
}
}

View File

@ -4,8 +4,8 @@ output "vpc_id" {
output "subnets_ids" {
value = {
frontend = google_compute_subnetwork.tp07-frontend.id
backend = google_compute_subnetwork.tp07-backend.id
frontend = google_compute_subnetwork.tp07-frontend.id,
backend = google_compute_subnetwork.tp07-backend.id,
database = google_compute_subnetwork.tp07-database.id
}
}