diff --git a/ibm/data_source_ibm_is_vpc.go b/ibm/data_source_ibm_is_vpc.go index 8f215ab97a..0fff2a9eda 100644 --- a/ibm/data_source_ibm_is_vpc.go +++ b/ibm/data_source_ibm_is_vpc.go @@ -45,6 +45,12 @@ func dataSourceIBMISVPC() *schema.Resource { Elem: &schema.Schema{Type: schema.TypeString}, }, + isVPCCRN: { + Type: schema.TypeString, + Computed: true, + Description: "The crn of the resource", + }, + ResourceControllerURL: { Type: schema.TypeString, Computed: true, @@ -169,6 +175,7 @@ func dataSourceIBMISVPCRead(d *schema.ResourceData, meta interface{}) error { "An error occured during reading of vpc (%s) tags : %s", d.Id(), err) } d.Set(isVPCTags, tags) + d.Set(isVPCCRN, vpc.Crn) controller, err := getBaseController(meta) if err != nil { diff --git a/website/docs/d/is_vpc.html.markdown b/website/docs/d/is_vpc.html.markdown index 505c8dc8be..d9a507d8e8 100644 --- a/website/docs/d/is_vpc.html.markdown +++ b/website/docs/d/is_vpc.html.markdown @@ -34,6 +34,7 @@ The following arguments are supported: The following attributes are exported: +* `crn` - The CRN of VPC. * `status` - The status of VPC. * `default_network_acl` - ID of the default network ACL. * `classic_access` - Indicates whether this VPC is connected to Classic Infrastructure.