AWS Redis Serverless Port Issue

My terraform plan is crashing related to working with a serverless Redis cache.

The crash report is

Error: Request cancelled

The plugin6.(*GRPCProvider).ReadResource request was cancelled.

Stack trace from the terraform-provider-awscc_v0.68.0_x5 plugin:

panic: AttributeName(“port”): can’t use tftypes.String as tftypes.Number

goroutine 83 [running]:
github.com/hashicorp/terraform-plugin-go/tftypes.NewValue(...)
github.com/hashicorp/terraform-plugin-go@v0.19.1/tftypes/value.go:278
github.com/hashicorp/terraform-provider-awscc/internal/generic.toTerraform.valueFromRaw({0x1ddb455?}, {0x2a75cc0, 0xc0024db4d0}, {0x7f616ff40840, 0xc000652af0}, 0xc001214330, {0x1ca86a0?, 0xc00121a720?})
github.com/hashicorp/terraform-provider-awscc/internal/generic/translate.go:304 +0x10d8
github.com/hashicorp/terraform-provider-awscc/internal/generic.toTerraform.valueFromRaw({0xc001268300?}, {0x2a75cc0, 0xc0024db4d0}, {0x7f616ff40840, 0xc000652af0}, 0x0, {0x1ca86a0?, 0xc00121a6c0?})
github.com/hashicorp/terraform-provider-awscc/internal/generic/translate.go:275 +0xa55
github.com/hashicorp/terraform-provider-awscc/internal/generic.toTerraform.FromRaw(...)
github.com/hashicorp/terraform-provider-awscc/internal/generic/translate.go:184
github.com/hashicorp/terraform-provider-awscc/internal/generic.toTerraform.FromString({0x0?}, {0x2a75cc0, 0xc0024db4d0}, {0x7f616ff40840, 0xc000652af0}, {0xc001268000, 0x2fc})
github.com/hashicorp/terraform-provider-awscc/internal/generic/translate.go:196 +0xcf
github.com/hashicorp/terraform-provider-awscc/internal/generic.(*genericResource).Read(0xc000d00c40, {0x2a75cc0, 0xc0024aeed0}, {{{{0x2a7a9a0, 0xc0024dacf0}, {0x1ca7da0, 0xc0024da630}}, {0x2a9ac90, 0xc000652af0}}, 0xc0000136a0, …}, …)
github.com/hashicorp/terraform-provider-awscc/internal/generic/resource.go:499 +0x527
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ReadResource(0xc000153600, {0x2a75cc0, 0xc0024aeed0}, 0xc0024aef60, 0xc0024f35f0)
github.com/hashicorp/terraform-plugin-framework@v1.4.2/internal/fwserver/server_readresource.go:101 +0x677
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ReadResource(0xc000153600, {0x2a75cc0?, 0xc0024aed80?}, 0xc002449240)
github.com/hashicorp/terraform-plugin-framework@v1.4.2/internal/proto6server/server_readresource.go:55 +0x41a
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0xc0003a6140, {0x2a75cc0?, 0xc0024ae3f0?}, 0xc0004a4f00)
github.com/hashicorp/terraform-plugin-go@v0.19.1/tfprotov6/tf6server/server.go:787 +0x4b1
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0x1da16a0?, 0xc0003a6140}, {0x2a75cc0, 0xc0024ae3f0}, 0xc002466e00, 0x0)
github.com/hashicorp/terraform-plugin-go@v0.19.1/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:431 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001d8960, {0x2a75cc0, 0xc0024ae330}, {0x2a98378, 0xc000007d40}, 0xc0024a9200, 0xc00044c4b0, 0x36833c8, 0x0)
google.golang.org/grpc@v1.59.0/server.go:1343 +0xe49
google.golang.org/grpc.(*Server).handleStream(0xc0001d8960, {0x2a98378, 0xc000007d40}, 0xc0024a9200)
google.golang.org/grpc@v1.59.0/server.go:1737 +0xca6
google.golang.org/grpc.(*Server).serveStreams.func1.1()
google.golang.org/grpc@v1.59.0/server.go:986 +0x8c
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/grpc@v1.59.0/server.go:997 +0x15c

Error: The terraform-provider-awscc_v0.68.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

This is a snippet of the Terraform script causing the error:

provider “awscc” {
region = “us-west-2”
}

resource “awscc_elasticache_serverless_cache” “redis_cluster” {
serverless_cache_name = “rfl-${var.deployment_environment}-bod-redis-cluster”
description = “ElastiCache Redis Serverless”
engine = “redis”
major_engine_version = “7”

security_group_ids = [aws_security_group.redis_security_group.id]
subnet_ids = var.metadata_subnet_ids
depends_on = [aws_security_group.redis_security_group]
}