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
1.63.0
Affected Resource(s)
ibm_is_security_group
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
I expect to have the ability to correctly use a data source to reference VPC security groups when two groups in different VPCs have the same name.
Actual Behavior
VPC security groups are not required to have universally unique names. They are required to have the same name in a given VPC. When two security groups have the same name in different VPCs the ibm_is_security_group data source can and does lookup and get a reference to the "wrong" security group when trying to work with a specific VPC.
Trying to add "vpc" as an input argument gives an error.
Steps to Reproduce
create two VPC security groups with the same name in different VPCs.
Create some HCL with a security group data source
run Terraform plan
It will return one of the security groups IDs in the plan output but there is no way to choose WHICH of the conflicting named groups to use.
References
The text was updated successfully, but these errors were encountered:
Community Note
Terraform CLI and Terraform IBM Provider Version
1.63.0
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.
Debug Output
Panic Output
Expected Behavior
I expect to have the ability to correctly use a data source to reference VPC security groups when two groups in different VPCs have the same name.
Actual Behavior
VPC security groups are not required to have universally unique names. They are required to have the same name in a given VPC. When two security groups have the same name in different VPCs the ibm_is_security_group data source can and does lookup and get a reference to the "wrong" security group when trying to work with a specific VPC.
The arguments for the data source only allow "name". They do not allow "vpc": https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/is_security_group#argument-reference
Trying to add "vpc" as an input argument gives an error.
Steps to Reproduce
It will return one of the security groups IDs in the plan output but there is no way to choose WHICH of the conflicting named groups to use.
References
The text was updated successfully, but these errors were encountered: