Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
pingone_environment.my_environment: Creating...
โท
โ Error: Request cancelled
โ
โ with pingone_environment.my_environment,
โ on main.tf line 18, in resource "pingone_environment" "my_environment":
โ 18: resource "pingone_environment" "my_environment" {
โ
โ The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled.
โต
Stack trace from the terraform-provider-pingone_v0.2.1 plugin:
panic: runtime error: index out of range [0] with length 0
goroutine 70 [running]:
github.com/pingidentity/terraform-provider-pingone/internal/service/base.resourcePingOneEnvironmentCreate({0x1cc4660, 0xc00010d440}, 0x0?, {0x19a2540?, 0xc00034b8c0})
github.com/pingidentity/terraform-provider-pingone/internal/service/base/resource_environment.go:211 +0x1319
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc000123420, {0x1cc4698, 0xc0000b0ae0}, 0xd?, {0x19a2540, 0xc00034b8c0})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:707 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc000123420, {0x1cc4698, 0xc0000b0ae0}, 0xc0004aedd0, 0xc0003c4900, {0x19a2540, 0xc00034b8c0})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:837 +0xa7a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000111980, {0x1cc4698?, 0xc0000b09c0?}, 0xc0003c2320)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xe3c
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0003fd180, {0x1cc4698?, 0xc0000b0180?}, 0xc0001d60e0)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x574
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x1b206c0?, 0xc0003fd180}, {0x1cc4698, 0xc0000b0180}, 0xc0001d6070, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00042e000, {0x1cc7688, 0xc0002c4340}, 0xc0001c0120, 0xc000444b40, 0x22eb180, 0x0)
google.golang.org/[email protected]/server.go:1295 +0xb0b
google.golang.org/grpc.(*Server).handleStream(0xc00042e000, {0x1cc7688, 0xc0002c4340}, 0xc0001c0120, 0x0)
google.golang.org/[email protected]/server.go:1636 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/[email protected]/server.go:932 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:930 +0x28a
Error: The terraform-provider-pingone_v0.2.1 plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.