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 5 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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ No modules.

## Outputs

No outputs.
| Name | Description |
|------|-------------|
| <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
7 changes: 4 additions & 3 deletions examples/default/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
##############################################################################
# Please open an issue to suggest outputs for this module
##############################################################################
output "vpe_ips" {
description = "The endpoint gateway reserved ips"
value = module.vpes.vpe_ips
}
11 changes: 10 additions & 1 deletion module-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,16 @@
}
}
},
"outputs": {},
"outputs": {
"vpe_ips": {
"name": "vpe_ips",
"description": "The endpoint gateway reserved ips",
"pos": {
"filename": "outputs.tf",
"line": 1
}
}
},
"required_core": [
"\u003e=1.3"
],
Expand Down
7 changes: 4 additions & 3 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
##############################################################################
# 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]
}