We are trying to create AWS sagemaker domain, image, model and nootbook instance using custom module, we are getting terraform plugin error crash log.
Terraform version v1.5.6
AWS provider version v5.54.1
Error log:-
#####################
Error: Plugin did not respond
│
│ with module.complete_example.aws_sagemaker_domain.domain[0],
│ on ..\modules\main.tf line 424, in resource "aws_sagemaker_domain" "domain":
│ 424: resource "aws_sagemaker_domain" "domain" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).PlanResourceChange call. The plugin logs
│ may contain more details.
╵
╷
│ Error: Plugin did not respond
│
│ with module.complete_example.aws_sagemaker_image.image[0],
│ on ..\modules\main.tf line 946, in resource "aws_sagemaker_image" "image":
│ 946: resource "aws_sagemaker_image" "image" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs
│ may contain more details.
╵
╷
│ Error: Plugin did not respond
│
│ with module.complete_example.aws_sagemaker_model.model[0],
│ on ..\modules\main.tf line 967, in resource "aws_sagemaker_model" "model":
│ 967: resource "aws_sagemaker_model" "model" {
│
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs
│ may contain more details.
╵
╷
│ Error: Plugin did not respond
│
│ with module.complete_example.aws_sagemaker_notebook_instance.notebook_instance[0],
│ on ..\modules\main.tf line 1034, in resource "aws_sagemaker_notebook_instance" "notebook_instance":
│ 1034: resource "aws_sagemaker_notebook_instance" "notebook_instance" {
│
│ 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_v5.54.1_x5.exe plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 326 [running]:
github.com/hashicorp/terraform-provider-aws/internal/service/sagemaker.expandVPCConfigRequest({0xc001f08b60?, 0x13bb2840?, 0xc0058d0b10?})
github.com/hashicorp/terraform-provider-aws/internal/service/sagemaker/model.go:392 +0x178
github.com/hashicorp/terraform-provider-aws/internal/service/sagemaker.resourceModelCreate({0x15b08488, 0xc0058d0b10}, 0xc0014e7e80, {0x13b55ae0, 0xc0050de8f0})
github.com/hashicorp/terraform-provider-aws/internal/service/sagemaker/model.go:363 +0x387
github.com/hashicorp/terraform-provider-aws/internal/provider.New.(*wrappedResource).Create.interceptedHandler[...].func8(0xc0014e7e80?, {0x13b55ae0?, 0xc0050de8f0})
github.com/hashicorp/terraform-provider-aws/internal/provider/intercept.go:113 +0x283
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0x15b08488?, {0x15b08488?, 0xc002232180?}, 0xd?, {0x13b55ae0?, 0xc0050de8f0?})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:801 +0x7a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc003ed10a0, {0x15b08488, 0xc002232180}, 0xc001950f70, 0xc0014e7c00, {0x13b55ae0, 0xc0050de8f0})
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/resource.go:937 +0xa89
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc004886360, {0x15b08488?, 0xc002232090?}, 0xc0001fdae0)
github.com/hashicorp/terraform-plugin-sdk/v2@v2.34.0/helper/schema/grpc_provider.go:1153 +0xd5c
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ApplyResourceChange(0xc0016ab260, {0x15b08488?, 0xc001eb9ce0?}, 0xc0001fdae0)
github.com/hashicorp/terraform-plugin-mux@v0.16.0/tf5muxserver/mux_server_ApplyResourceChange.go:36 +0x193
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc000199a40, {0x15b08488?, 0xc001eb94d0?}, 0xc0003b69a0)
github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/tf5server/server.go:865 +0x3d0
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x13920620, 0xc000199a40}, {0x15b08488, 0xc001eb94d0}, 0xc0014e7400, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:518 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc001944e00, {0x15b08488, 0xc001eb9440}, {0x15b59860, 0xc0011de600}, 0xc001db37a0, 0xc004134a20, 0x1ec0a7f8, 0x0)
google.golang.org/grpc@v1.63.2/server.go:1369 +0xdf8
google.golang.org/grpc.(*Server).handleStream(0xc001944e00, {0x15b59860, 0xc0011de600}, 0xc001db37a0)
google.golang.org/grpc@v1.63.2/server.go:1780 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
google.golang.org/grpc@v1.63.2/server.go:1019 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 52
google.golang.org/grpc@v1.63.2/server.go:1030 +0x125
Error: The terraform-provider-aws_v5.54.1_x5.exe 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.