From 98f294a822e4bbbd7b279d647fc50488e1829f65 Mon Sep 17 00:00:00 2001 From: Simone Ruffilli Date: Sat, 4 Dec 2021 20:01:22 +0100 Subject: [PATCH] Added subnet id and self_link to outputs (#377) Adjusted module outputs so that it's easier to consume them when using the factory in a larger codebase. --- factories/subnets/outputs.tf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/factories/subnets/outputs.tf b/factories/subnets/outputs.tf index e3032c104..2cdecb2ef 100644 --- a/factories/subnets/outputs.tf +++ b/factories/subnets/outputs.tf @@ -19,10 +19,12 @@ output "subnet" { value = { for k, v in google_compute_subnetwork.default : k => { - network = v.network - project = v.project - range = v.ip_cidr_range - region = v.region + id = v.id + network = v.network + project = v.project + range = v.ip_cidr_range + region = v.region + self_link = v.self_link } } }