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

fix: extend the vpc output data #641

Merged
merged 4 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ To attach access management tags to resources in this module, you need the follo
| <a name="output_subnet_ids"></a> [subnet\_ids](#output\_subnet\_ids) | The IDs of the subnets |
| <a name="output_subnet_zone_list"></a> [subnet\_zone\_list](#output\_subnet\_zone\_list) | A list containing subnet IDs and subnet zones |
| <a name="output_vpc_crn"></a> [vpc\_crn](#output\_vpc\_crn) | CRN of VPC created |
| <a name="output_vpc_data"></a> [vpc\_data](#output\_vpc\_data) | Data of the VPC created. |
| <a name="output_vpc_flow_logs"></a> [vpc\_flow\_logs](#output\_vpc\_flow\_logs) | Details of VPC flow logs collector |
| <a name="output_vpc_id"></a> [vpc\_id](#output\_vpc\_id) | ID of VPC created |
| <a name="output_vpc_name"></a> [vpc\_name](#output\_vpc\_name) | Name of VPC created |
Expand Down
8 changes: 8 additions & 0 deletions module-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,14 @@
"type": "TypeString",
"cloud_data_type": "crn"
},
"vpc_data": {
"name": "vpc_data",
"description": "Data of the VPC created.",
"pos": {
"filename": "outputs.tf",
"line": 145
}
},
"vpc_flow_logs": {
"name": "vpc_flow_logs",
"description": "Details of VPC flow logs collector",
Expand Down
11 changes: 11 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,14 @@ output "cidr_blocks" {
description = "List of CIDR blocks present in VPC stack"
value = [for address in data.ibm_is_vpc_address_prefixes.get_address_prefixes.address_prefixes : address.cidr]
}

output "vpc_data" {
description = "Data of the VPC created."
value = {
crn = ibm_is_vpc.vpc.crn
id = ibm_is_vpc.vpc.id
name = ibm_is_vpc.vpc.name
resource_group = ibm_is_vpc.vpc.resource_group
resource_group_name = ibm_is_vpc.vpc.resource_group_name
}
}