When aws_api_gateway_deployment has a parameter stage_name where a value inside exists in the api_gateway then AWS provider 3.45.0 crashes during deleting resources.
...
panic: interface conversion: interface {} is nil, not *aws.AWSClient
goroutine 114 [running]:
github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsApiGatewayMethodSettingsRead(0xc00065a480, 0x0, 0x0, 0xc022270, 0xc000601b00)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-aws/aws/resource_aws_api_gateway_method_settings.go:137 +0xea5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc0008382a0, 0x8859ae8, 0xc00063c240, 0xc00065a480, 0x0, 0x0, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.6.1/helper/schema/resource.go:335 +0x1ee
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc0008382a0, 0x8859ae8, 0xc00063c240, 0xc00067c150, 0x0, 0x0, 0xc00064a220, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.6.1/helper/schema/resource.go:624 +0x1cb
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc00000c840, 0x8859ae8, 0xc00063c240, 0xc00063c280, 0xc00063c240, 0x100b665, 0x781f9a0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.6.1/helper/schema/grpc_provider.go:575 +0x43b
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ReadResource(0xc00237b480, 0x8859b90, 0xc00063c240, 0xc00062e3c0, 0xc00237b480, 0xc00063ea80, 0xc0023b6ba0)
/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(0x7aefd20, 0xc00237b480, 0x8859b90, 0xc00063ea80, 0xc00062e360, 0x0, 0x8859b90, 0xc00063ea80, 0xc0006721c0, 0x1a7)
/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(0xc000a3b340, 0x887b818, 0xc000c8c300, 0xc00067a000, 0xc00172b890, 0xbfe19d0, 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(0xc000a3b340, 0x887b818, 0xc000c8c300, 0xc00067a000, 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(0xc0015f69b0, 0xc000a3b340, 0x887b818, 0xc000c8c300, 0xc00067a000)
/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.45.0_x5 plugin crashed!
...
and the issue from my own module, I hope it is useful too.
When aws_api_gateway_deployment has a parameter stage_name where a value inside exists in the api_gateway then AWS provider 3.45.0 crashes during deleting resources.
Stack trace from the terraform-provider-aws_v3.45.0_x5 plugin:
and the issue from my own module, I hope it is useful too.
│ Error: Plugin did not respond │ │ with module.serverless_tf_deals.aws_api_gateway_deployment.apigw_deployment, │ on ../modules/sls/apigw_deployment.tf line 1, in resource "aws_api_gateway_deployment" "apigw_deployment": │ 1: resource "aws_api_gateway_deployment" "apigw_deployment" { │ │ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.