Result from previous “terraform apply”
│ Error: error deleting Target Group: ResourceInUse: Target group ‘arn:aws:elasticloadbalancing:us-east-2:480666371981:targetgroup/terraforma/8545228055b1c33c’ is currently in use by a listener or a rule
│ status code: 400, request id: f1d1637a-9ab0-4e7d-bbab-d4469071dc2f
$ terraform destroy
…
╷
│ Error: Request cancelled
│
│ with aws_lb_target_group.asg,
│ on main.tf line 20, in resource “aws_lb_target_group” “asg”:
│ 20: resource “aws_lb_target_group” “asg” {
│
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│
│ with aws_lb_listener.http,
│ on main.tf line 52, in resource “aws_lb_listener” “http”:
│ 52: resource “aws_lb_listener” “http” {
│
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│
│ with aws_launch_configuration.example,
│ on main.tf line 68, in resource “aws_launch_configuration” “example”:
│ 68: resource “aws_launch_configuration” “example” {
│
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
╵
╷
│ Error: Request cancelled
│
│ with aws_launch_configuration.example,
│ on main.tf line 68, in resource “aws_launch_configuration” “example”:
│ 68: resource “aws_launch_configuration” “example” {
│
│ The plugin.(*GRPCProvider).ReadResource request was cancelled.
╵
Stack trace from the terraform-provider-aws_v3.66.0_x5 plugin:
panic: interface conversion: interface {} is nil, not *conns.AWSClient
goroutine 33 [running]:
github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling.resourceLaunchConfigurationRead(0xc0021e8680, 0x0, 0x0, 0xe828ae0, 0xc000074400)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling/launch_configuration.go:570 +0x12b8
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc0008015e0, 0x9f00c88, 0xc0021f2180, 0xc0021e8680, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/gdavison/terraform-plugin-sdk/v2@v2.7.1-0.20210913224932-c7c2dbd9e010/helper/schema/resource.go:335 +0x1ee
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc0008015e0, 0x9f00c88, 0xc0021f2180, 0xc001f339d0, 0x0, 0x0, 0xc0020b8a80, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/gdavison/terraform-plugin-sdk/v2@v2.7.1-0.20210913224932-c7c2dbd9e010/helper/schema/resource.go:624 +0x1cb
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc000123608, 0x9f00c88, 0xc0021f2180, 0xc0021f21c0, 0xc0021f2180, 0x40b965, 0x8994fc0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/gdavison/terraform-plugin-sdk/v2@v2.7.1-0.20210913224932-c7c2dbd9e010/helper/schema/grpc_provider.go:575 +0x43b
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ReadResource(0xc001781e60, 0x9f00d30, 0xc0021f2180, 0xc0021d2180, 0xc001781e60, 0xc0021d1ce0, 0xc0017d8ba0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/server/server.go:298 +0x105
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ReadResource_Handler(0x8d53fe0, 0xc001781e60, 0x9f00d30, 0xc0021d1ce0, 0xc0021d2120, 0x0, 0x9f00d30, 0xc0021d1ce0, 0xc0020ad200, 0x2e6)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.3.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:344 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00002f880, 0x9f2bc78, 0xc0022fc000, 0xc0019b9800, 0xc0014589c0, 0xe7e6870, 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(0xc00002f880, 0x9f2bc78, 0xc0022fc000, 0xc0019b9800, 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(0xc001166c80, 0xc00002f880, 0x9f2bc78, 0xc0022fc000, 0xc0019b9800)
/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.66.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.