Hello, I’m facing some plugin issues, maybe someone has already solved it:
I’ve tried many versions of AWS provider, but the result is same, and I’ve reverted plugin to default version that I’ve used:
Here is terraform provider setup
terraform {
required_version = ">= 0.12.0, < 0.16.0"
required_providers {
aws = ">= 3.0.0, < 3.4.0"
# aws = ">= 3.6.0, < 4.20.0"
local = ">= 1.4.0, < 4.20.0"
template = ">= 2.2.0, < 4.20.0"
}
}
Actual error
╷
│ Error: Plugin did not respond
│
│ 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-aws_v3.34.0_x5 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 203 [running]:
github.com/terraform-providers/terraform-provider-aws/aws.buildLaunchTemplateData(0xc00127d780, 0x75d0a13, 0x4, 0x60218c0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-aws/aws/resource_aws_launch_template.go:1379 +0x2cbf
github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsLaunchTemplateCreate(0xc00127d780, 0x68c44a0, 0xc00205d600, 0xa, 0xffffffffffffffff)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-aws/aws/resource_aws_launch_template.go:661 +0xcc
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0009b4e00, 0x80780a8, 0xc001267c80, 0xc00127d780, 0x68c44a0, 0xc00205d600, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.5.0/helper/schema/resource.go:318 +0x1ee
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0009b4e00, 0x80780a8, 0xc001267c80, 0xc001263960, 0xc0010a4460, 0x68c44a0, 0xc00205d600, 0x0, 0x0, 0x0, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.5.0/helper/schema/resource.go:456 +0x67b
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0000a8768, 0x80780a8, 0xc001267c80, 0xc0016c2f00, 0xc001267c80, 0x73e5740, 0xc001b49500)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.5.0/helper/schema/grpc_provider.go:955 +0x8ef
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ApplyResourceChange(0xc001ac31e0, 0x8078150, 0xc001267c80, 0xc001263810, 0xc001ac31e0, 0xc001b49560, 0xc000360ba0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.2.1/tfprotov5/server/server.go:332 +0xb5
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x73e5740, 0xc001ac31e0, 0x8078150, 0xc001b49560, 0xc00105cfc0, 0x0, 0x8078150, 0xc001b49560, 0xc0012c0000, 0x2849)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.2.1/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:380 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0002ab500, 0x8097b98, 0xc00036c600, 0xc001d65900, 0xc00065cab0, 0xb4b0200, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.32.0/server.go:1194 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc0002ab500, 0x8097b98, 0xc00036c600, 0xc001d65900, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.32.0/server.go:1517 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000de82c0, 0xc0002ab500, 0x8097b98, 0xc00036c600, 0xc001d65900)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.32.0/server.go:859 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/google.golang.org/grpc@v1.32.0/server.go:857 +0x1fd
Error: The terraform-provider-aws_v3.34.0_x5 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.