-
Notifications
You must be signed in to change notification settings - Fork 6
Description
WHAT
I want to create an application using the provider but I am getting a plugin crash error
WHY
terraform {
required_providers {
spinnaker = {
source = "mercari/spinnaker"
version = "0.3.0"
}
}
}
provider "spinnaker" {
gate_endpoint = "XXX"
default_headers = "XXX"
ignore_cert_errors = true
}
resource "spinnaker_application" "my_app" {
name = "terraform-app"
email = "XXX"
}
spinnaker_application.my_app: Creating...
╷
│ Error: Plugin did not respond
│
│ with spinnaker_application.my_app,
│ on provider.tf line 16, in resource "spinnaker_application" "my_app":
│ 16: resource "spinnaker_application" "my_app" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
╵
Stack trace from the terraform-provider-spinnaker_v0.3.0 plugin:
panic: interface conversion: interface {} is nil, not string
goroutine 84 [running]:
github.com/mercari/terraform-provider-spinnaker/spinnaker/api.CreateApplication(0xc0003a83f0, 0xc00076b050, 0x0, 0x0)
github.com/mercari/terraform-provider-spinnaker/spinnaker/api/application.go:145 +0x547
github.com/mercari/terraform-provider-spinnaker/spinnaker.resourceSpinnakerApplicationCreate(0xf9e020, 0xc00076c240, 0xc000822200, 0xd9ae20, 0xc0003a83f0, 0xc000768b20, 0xacc86a, 0xc000691fe0)
github.com/mercari/terraform-provider-spinnaker/spinnaker/resource_application.go:105 +0x10d
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc000318780, 0xf9dfa0, 0xc0005169c0, 0xc000822200, 0xd9ae20, 0xc0003a83f0, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:285 +0x1ea
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc000318780, 0xf9dfa0, 0xc0005169c0, 0xc0003b4310, 0xc000691fe0, 0xd9ae20, 0xc0003a83f0, 0x0, 0x0, 0x0, ...)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:396 +0x65b
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000121780, 0xf9dfa0, 0xc0005169c0, 0xc000764820, 0xc0005169c0, 0x0, 0xfa8f40)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:955 +0x8cf
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ApplyResourceChange(0xc00041b920, 0xf9dfa0, 0xc0005169c0, 0xc0003b4070, 0xc00041b920, 0xc00035eab0, 0xc0007feba0)
github.com/hashicorp/[email protected]/tfprotov5/server/server.go:331 +0xae
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0xe37fe0, 0xc00041b920, 0xf9e060, 0xc00035eab0, 0xc000681c20, 0x0, 0xf9e060, 0xc00035eab0, 0xc000396a00, 0x137)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:380 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001f2700, 0xfa6dc0, 0xc000001e00, 0xc000370500, 0xc0003f2ba0, 0x146c8a0, 0x0, 0x0, 0x0)
google.golang.org/[email protected]/server.go:1210 +0x522
google.golang.org/grpc.(*Server).handleStream(0xc0001f2700, 0xfa6dc0, 0xc000001e00, 0xc000370500, 0x0)
google.golang.org/[email protected]/server.go:1533 +0xd05
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000290190, 0xc0001f2700, 0xfa6dc0, 0xc000001e00, 0xc000370500)
google.golang.org/[email protected]/server.go:871 +0xa5
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:869 +0x1fd
Error: The terraform-provider-spinnaker_v0.3.0 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.