diff --git a/README.md b/README.md index 5bd73b97..f203ef30 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,7 @@ To attach access management tags to resources in this module, you need the follo | [subnet\_ids](#output\_subnet\_ids) | The IDs of the subnets | | [subnet\_zone\_list](#output\_subnet\_zone\_list) | A list containing subnet IDs and subnet zones | | [vpc\_crn](#output\_vpc\_crn) | CRN of VPC created | +| [vpc\_data](#output\_vpc\_data) | Data of the VPC created. | | [vpc\_flow\_logs](#output\_vpc\_flow\_logs) | Details of VPC flow logs collector | | [vpc\_id](#output\_vpc\_id) | ID of VPC created | | [vpc\_name](#output\_vpc\_name) | Name of VPC created | diff --git a/module-metadata.json b/module-metadata.json index 0027ff0b..dcfac2ba 100644 --- a/module-metadata.json +++ b/module-metadata.json @@ -468,6 +468,15 @@ "type": "TypeString", "cloud_data_type": "crn" }, + "vpc_data": { + "name": "vpc_data", + "description": "Data of the VPC created.", + "value": "ibm_is_vpc.vpc", + "pos": { + "filename": "outputs.tf", + "line": 145 + } + }, "vpc_flow_logs": { "name": "vpc_flow_logs", "description": "Details of VPC flow logs collector", diff --git a/outputs.tf b/outputs.tf index 484f1292..2747365d 100644 --- a/outputs.tf +++ b/outputs.tf @@ -141,3 +141,8 @@ 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 = ibm_is_vpc.vpc +}