Skip to content

Commit c3fdff5

Browse files
feat: new outputs added: vpe_ips and crn (#323)
1 parent 5a80541 commit c3fdff5

File tree

4 files changed

+40
-8
lines changed

4 files changed

+40
-8
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ No modules.
109109

110110
## Outputs
111111

112-
No outputs.
112+
| Name | Description |
113+
|------|-------------|
114+
| <a name="output_crn"></a> [crn](#output\_crn) | The CRN of the endpoint gateway |
115+
| <a name="output_vpe_ips"></a> [vpe\_ips](#output\_vpe\_ips) | The endpoint gateway reserved ips |
113116
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
114117

115118
## Contributing

examples/default/outputs.tf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
##############################################################################
2-
# Please open an issue to suggest outputs for this module
3-
##############################################################################
1+
output "vpe_ips" {
2+
description = "The endpoint gateway reserved ips"
3+
value = module.vpes.vpe_ips
4+
}
5+
6+
output "crn" {
7+
description = "The CRN of the endpoint gateway"
8+
value = module.vpes.crn
9+
}

module-metadata.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,24 @@
128128
}
129129
}
130130
},
131-
"outputs": {},
131+
"outputs": {
132+
"crn": {
133+
"name": "crn",
134+
"description": "The CRN of the endpoint gateway",
135+
"pos": {
136+
"filename": "outputs.tf",
137+
"line": 6
138+
}
139+
},
140+
"vpe_ips": {
141+
"name": "vpe_ips",
142+
"description": "The endpoint gateway reserved ips",
143+
"pos": {
144+
"filename": "outputs.tf",
145+
"line": 1
146+
}
147+
}
148+
},
132149
"required_core": [
133150
"\u003e=1.3"
134151
],

outputs.tf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
##############################################################################
2-
# Please open an issue to suggest outputs for this module
3-
##############################################################################
1+
output "vpe_ips" {
2+
description = "The endpoint gateway reserved ips"
3+
value = [for vpe_pg in ibm_is_virtual_endpoint_gateway.vpe : vpe_pg.ips]
4+
}
5+
6+
output "crn" {
7+
description = "The CRN of the endpoint gateway"
8+
value = [for vpe_crn in ibm_is_virtual_endpoint_gateway.vpe : vpe_crn.crn]
9+
}

0 commit comments

Comments
 (0)