You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
ibm_is_subnet
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
data"ibm_is_subnet""z3" {
name="sn-20231016-03"
}
Expected Behavior
I expect to the the ID for the subnet in the VPC I am currently working with.
Actual Behavior
I get back the ID for the subnet that is in a DIFFERENT VPC. That is because the data resource does not allow me to specify which VPC I want this data from. It seems to pick a VPC at random or the last one created.
Steps to Reproduce
This assume that you are attempting to use the provider against an existing VPC. But to get started. Create two different VPCs in the same region using the Console UI. Use the default provided by the console to generate the subnet names.
Configure your Terraform template for your region and provider
Insert the code snippet above
Run terraform apply
You should get the subnet id back, but that subnet id is for which one of the two VPCs? 50/50 it is the one you expected or needed.
The text was updated successfully, but these errors were encountered:
Community Note
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
I expect to the the ID for the subnet in the VPC I am currently working with.
Actual Behavior
I get back the ID for the subnet that is in a DIFFERENT VPC. That is because the data resource does not allow me to specify which VPC I want this data from. It seems to pick a VPC at random or the last one created.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: