-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Hello,
I'm getting an error when trying to use the rediscloud_database resource.
Terraform version: v1.14.1
Provider version: registry.terraform.io/redislabs/rediscloud v2.8.0
Here is my code snippet:
data "rediscloud_database" "database_active_waiter" { subscription_id = var.rediscloud_subscription_id db_id = var.rediscloud_database_id }
Error Log:
`╷
│ Error: Request cancelled
│
│ with module.userandroles["example-database-2"].data.rediscloud_database.database_active_waiter,
│ on modules/userandroles/main.tf line 13, in data "rediscloud_database" "database_active_waiter":
│ 13: data "rediscloud_database" "database_active_waiter" {
│
│ The plugin.(*GRPCProvider).ReadDataSource request was cancelled.
╵
Stack trace from the terraform-provider-rediscloud_v2.8.0 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x93001a]
goroutine 118 [running]:
github.com/RedisLabs/terraform-provider-rediscloud/provider/pro.dataSourceRedisCloudProDatabaseRead({0x1002188, 0xc000796000}, 0xc000564510, {0xcf18e0?, 0xc0002c2198})
github.com/RedisLabs/terraform-provider-rediscloud/provider/pro/datasource_rediscloud_pro_database.go:503 +0x1e7a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc0001c3800, {0x10020e0, 0xc000127530}, 0xc000564510, {0xcf18e0, 0xc0002c2198})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:866 +0x119
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).ReadDataApply(0xc0001c3800, {0x10020e0, 0xc000127530}, 0x0?, {0xcf18e0, 0xc0002c2198})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:1088 +0x13e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadDataSource(0xc0003fa528, {0x10020e0?, 0xc0001272f0?}, 0xc000127290)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1889 +0x6ac
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ReadDataSource(0xc000452aa0, {0x10020e0?, 0xc000126930?}, 0xc000503400)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:736 +0x26d
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadDataSource_Handler({0xe85d40, 0xc000452aa0}, {0x10020e0, 0xc000126930}, 0xc00069ed80, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:843 +0x1a9
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000276200, {0x10020e0, 0xc0001268a0}, 0xc000616780, 0xc00044cff0, 0x16699f0, 0x0)
google.golang.org/[email protected]/server.go:1431 +0x1036
google.golang.org/grpc.(*Server).handleStream(0xc000276200, {0x1002b88, 0xc0004aa000}, 0xc000616780)
google.golang.org/[email protected]/server.go:1842 +0xb88
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/[email protected]/server.go:1061 +0x7f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 23
google.golang.org/[email protected]/server.go:1072 +0x11d
Error: The terraform-provider-rediscloud_v2.8.0 plugin crashed!
`
The same issue occurs in 2.7* versions.
Please let me know the alternative ways to fix this issue.
Thanks.