Open Nashluffy opened 2 years ago
Hi @Nashluffy ,
data source for subnet contains ID attribute.
data "ibm_is_subnet" "subnet" {
identifier = "*******"
}
this fetches the details of the subnet and also has the attribute 'id' which contains the subnet ID are you referring to a different data source or resource ?
Perhaps the docs are out of date then? I don't see an id
attribute for this data source. My use case is that I want to fetch the ID of a subnet given I only have the name.
@Nashluffy id
is in the list of attributes https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/is_subnet#id
Hi @Nashluffy are we good to close this issue ?
Community Note
Description
The data source
ibm_is_subnet
should include the subnet ID. It seems the ID is available from the API, it's just not present in the attributes. For example, I have the subnet name but I need to find it's ID, I cannot currently do that.New or Affected Resource(s)
data.ibm_is_subnet
Potential Terraform Configuration
References
0000