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
Terraform v1.9.2
on darwin_arm64
+ provider registry.terraform.io/hashicorp/random v3.7.1
+ provider registry.terraform.io/hashicorp/time v0.12.1
+ provider registry.terraform.io/ibm-cloud/ibm v1.76.0
Your version of Terraform is out of date! The latest version
is v1.11.0. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
ibm_scc_scope_collection
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_scc_scope_collection""scc_scope_collection" {
instance_id="xxxxxxxxxxxxxxxx"# replace with guid of instance
}
data.ibm_scc_scope_collection.scc_scope_collection: Still reading... [15m10s elapsed]
data.ibm_scc_scope_collection.scc_scope_collection: Still reading... [15m20s elapsed]
data.ibm_scc_scope_collection.scc_scope_collection: Still reading... [15m30s elapsed]
data.ibm_scc_scope_collection.scc_scope_collection: Still reading... [15m40s elapsed]
Steps to Reproduce
terraform apply
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
Seems this happens when no scopes exist in an instance yet
ocofaigh
changed the title
ibm_scc_scope_collection data lookup not working
ibm_scc_scope_collection data lookup not returning when no scopes exist
Mar 4, 2025
Found the source of the issue; I was able to replicate the problem creating a SCC instance with no scopes. Using REST calls directly to the endpoint that datasource is using, you will see a response similar to this:
The SDK is seeing that a .next attribute is being returned and thus thinks that another pagination is available. This is an API defect but i can provide a temp fix for the time being.
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.
Debug Output
Seems to be stuck in a loop:
debug.log
Panic Output
Expected Behavior
Data lookup should return successfully
Actual Behavior
I waited over 15mins and it still didn't pass:
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: