ajout outputs

This commit is contained in:
James Boutaric
2025-12-04 11:05:37 +01:00
parent cfeee8df7f
commit f54d9bacfb
12 changed files with 115 additions and 58 deletions

View File

@@ -1,11 +1,16 @@
# À vous d'exposer :
# 1. L'ID du VPC
# 2. Les IDs des sous-réseaux sous forme de map
# output "instance_ip" {
# value = google_compute_instance.main.network_interface[0].access_config[0].nat_ip
# }
output "vpc" {
value = google_compute_network.vpc_terraform.id
}
# output "vpc_id" {
# description = "ID of project VPC"
# value = module.vpc.vpc_id
# }
output "subnets" {
value = {
frontend = google_compute_subnetwork.subnet_frontend.id