Skip to content

Commit

Permalink
feat: new outputs added: vpe_ips and crn (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush-Abhyarthi committed Jun 7, 2023
1 parent 5a80541 commit c3fdff5
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ No modules.

## Outputs

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

## Contributing
Expand Down
12 changes: 9 additions & 3 deletions examples/default/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
##############################################################################
# Please open an issue to suggest outputs for this module
##############################################################################
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
}
19 changes: 18 additions & 1 deletion module-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,24 @@
}
}
},
"outputs": {},
"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",
"pos": {
"filename": "outputs.tf",
"line": 1
}
}
},
"required_core": [
"\u003e=1.3"
],
Expand Down
12 changes: 9 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
##############################################################################
# Please open an issue to suggest outputs for this module
##############################################################################
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]
}

0 comments on commit c3fdff5

Please sign in to comment.