Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds outputs #323

Merged
merged 6 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
}