From be250f64e8bb4e8d40bc3e7f4960a2e81d6b38d5 Mon Sep 17 00:00:00 2001 From: Aayush-Abhyarthi Date: Mon, 29 May 2023 09:24:34 +0000 Subject: [PATCH 1/4] adds outputs --- examples/default/outputs.tf | 12 +++++++++--- outputs.tf | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/examples/default/outputs.tf b/examples/default/outputs.tf index db9aa68..fdc828e 100644 --- a/examples/default/outputs.tf +++ b/examples/default/outputs.tf @@ -1,3 +1,9 @@ -############################################################################## -# Please open an issue to suggest outputs for this module -############################################################################## +output "vpe_endpoints" { + description = "Vpe Service Endpoints" + value = module.vpes.vpe_service_endpoints +} + +output "vpe_ips" { + description = "The endpoint gateway reserved ips" + value = module.vpes.vpe_ips +} \ No newline at end of file diff --git a/outputs.tf b/outputs.tf index db9aa68..32d03bc 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,3 +1,9 @@ -############################################################################## -# Please open an issue to suggest outputs for this module -############################################################################## +output "vpe_service_endpoints" { + description = "Vpe Service Endpoints" + value = [for vpe_pg in ibm_is_virtual_endpoint_gateway.vpe : vpe_pg.service_endpoints[0]] +} + +output "vpe_ips" { + description = "The endpoint gateway reserved ips" + value = [for vpe_pg in ibm_is_virtual_endpoint_gateway.vpe : vpe_pg.ips] +} \ No newline at end of file From 9f4cd6958cdbd58276ed22dbf5392de66192f63f Mon Sep 17 00:00:00 2001 From: Aayush-Abhyarthi Date: Mon, 29 May 2023 11:51:59 +0000 Subject: [PATCH 2/4] adds output --- README.md | 5 ++++- examples/default/outputs.tf | 10 +++++----- module-metadata.json | 19 ++++++++++++++++++- outputs.tf | 6 +++--- 4 files changed, 30 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a831168..c74b9ef 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,10 @@ No modules. ## Outputs -No outputs. +| Name | Description | +|------|-------------| +| [vpe\_ips](#output\_vpe\_ips) | The endpoint gateway reserved ips | +| [vpe\_service\_endpoints](#output\_vpe\_service\_endpoints) | Vpe Service Endpoints | ## Contributing diff --git a/examples/default/outputs.tf b/examples/default/outputs.tf index fdc828e..d8b8052 100644 --- a/examples/default/outputs.tf +++ b/examples/default/outputs.tf @@ -1,9 +1,9 @@ output "vpe_endpoints" { - description = "Vpe Service Endpoints" - value = module.vpes.vpe_service_endpoints + description = "Vpe Service Endpoints" + value = module.vpes.vpe_service_endpoints } output "vpe_ips" { - description = "The endpoint gateway reserved ips" - value = module.vpes.vpe_ips -} \ No newline at end of file + description = "The endpoint gateway reserved ips" + value = module.vpes.vpe_ips +} diff --git a/module-metadata.json b/module-metadata.json index 36e86f6..726c67f 100644 --- a/module-metadata.json +++ b/module-metadata.json @@ -128,7 +128,24 @@ } } }, - "outputs": {}, + "outputs": { + "vpe_ips": { + "name": "vpe_ips", + "description": "The endpoint gateway reserved ips", + "pos": { + "filename": "outputs.tf", + "line": 6 + } + }, + "vpe_service_endpoints": { + "name": "vpe_service_endpoints", + "description": "Vpe Service Endpoints", + "pos": { + "filename": "outputs.tf", + "line": 1 + } + } + }, "required_core": [ "\u003e=1.3" ], diff --git a/outputs.tf b/outputs.tf index 32d03bc..4eeaade 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,9 +1,9 @@ output "vpe_service_endpoints" { description = "Vpe Service Endpoints" - value = [for vpe_pg in ibm_is_virtual_endpoint_gateway.vpe : vpe_pg.service_endpoints[0]] + value = [for vpe_pg in ibm_is_virtual_endpoint_gateway.vpe : vpe_pg.service_endpoints[0]] } output "vpe_ips" { description = "The endpoint gateway reserved ips" - value = [for vpe_pg in ibm_is_virtual_endpoint_gateway.vpe : vpe_pg.ips] -} \ No newline at end of file + value = [for vpe_pg in ibm_is_virtual_endpoint_gateway.vpe : vpe_pg.ips] +} From 581590a144b786dc50cb7b0f9a03b46ae393ffd4 Mon Sep 17 00:00:00 2001 From: Aayush-Abhyarthi Date: Tue, 30 May 2023 21:33:43 +0000 Subject: [PATCH 3/4] adds output --- README.md | 1 - examples/default/outputs.tf | 5 ----- module-metadata.json | 8 -------- outputs.tf | 5 ----- 4 files changed, 19 deletions(-) diff --git a/README.md b/README.md index c74b9ef..85b7d64 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,6 @@ No modules. | Name | Description | |------|-------------| | [vpe\_ips](#output\_vpe\_ips) | The endpoint gateway reserved ips | -| [vpe\_service\_endpoints](#output\_vpe\_service\_endpoints) | Vpe Service Endpoints | ## Contributing diff --git a/examples/default/outputs.tf b/examples/default/outputs.tf index d8b8052..f7a8259 100644 --- a/examples/default/outputs.tf +++ b/examples/default/outputs.tf @@ -1,8 +1,3 @@ -output "vpe_endpoints" { - description = "Vpe Service Endpoints" - value = module.vpes.vpe_service_endpoints -} - output "vpe_ips" { description = "The endpoint gateway reserved ips" value = module.vpes.vpe_ips diff --git a/module-metadata.json b/module-metadata.json index 817cc75..3ae9ad7 100644 --- a/module-metadata.json +++ b/module-metadata.json @@ -132,14 +132,6 @@ "vpe_ips": { "name": "vpe_ips", "description": "The endpoint gateway reserved ips", - "pos": { - "filename": "outputs.tf", - "line": 6 - } - }, - "vpe_service_endpoints": { - "name": "vpe_service_endpoints", - "description": "Vpe Service Endpoints", "pos": { "filename": "outputs.tf", "line": 1 diff --git a/outputs.tf b/outputs.tf index 4eeaade..e432eed 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,8 +1,3 @@ -output "vpe_service_endpoints" { - description = "Vpe Service Endpoints" - value = [for vpe_pg in ibm_is_virtual_endpoint_gateway.vpe : vpe_pg.service_endpoints[0]] -} - output "vpe_ips" { description = "The endpoint gateway reserved ips" value = [for vpe_pg in ibm_is_virtual_endpoint_gateway.vpe : vpe_pg.ips] From b081dd5aa4e963080dc09c0b4c953bc6eee096d5 Mon Sep 17 00:00:00 2001 From: Aayush-Abhyarthi Date: Fri, 2 Jun 2023 19:55:03 +0000 Subject: [PATCH 4/4] added extra output --- README.md | 1 + examples/default/outputs.tf | 5 +++++ module-metadata.json | 8 ++++++++ outputs.tf | 5 +++++ 4 files changed, 19 insertions(+) diff --git a/README.md b/README.md index 85b7d64..9739149 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,7 @@ No modules. | Name | Description | |------|-------------| +| [crn](#output\_crn) | The CRN of the endpoint gateway | | [vpe\_ips](#output\_vpe\_ips) | The endpoint gateway reserved ips | diff --git a/examples/default/outputs.tf b/examples/default/outputs.tf index f7a8259..7da42d6 100644 --- a/examples/default/outputs.tf +++ b/examples/default/outputs.tf @@ -2,3 +2,8 @@ output "vpe_ips" { description = "The endpoint gateway reserved ips" value = module.vpes.vpe_ips } + +output "crn" { + description = "The CRN of the endpoint gateway" + value = module.vpes.crn +} diff --git a/module-metadata.json b/module-metadata.json index 3ae9ad7..80b6ad6 100644 --- a/module-metadata.json +++ b/module-metadata.json @@ -129,6 +129,14 @@ } }, "outputs": { + "crn": { + "name": "crn", + "description": "The CRN of the endpoint gateway", + "pos": { + "filename": "outputs.tf", + "line": 6 + } + }, "vpe_ips": { "name": "vpe_ips", "description": "The endpoint gateway reserved ips", diff --git a/outputs.tf b/outputs.tf index e432eed..d933883 100644 --- a/outputs.tf +++ b/outputs.tf @@ -2,3 +2,8 @@ output "vpe_ips" { description = "The endpoint gateway reserved ips" value = [for vpe_pg in ibm_is_virtual_endpoint_gateway.vpe : vpe_pg.ips] } + +output "crn" { + description = "The CRN of the endpoint gateway" + value = [for vpe_crn in ibm_is_virtual_endpoint_gateway.vpe : vpe_crn.crn] +}