Latest patch has introduced to a crash situation. Maybe README is incomplete?
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.ecs.module.ecs.aws_ecs_cluster.this[0] will be updated in-place
~ resource "aws_ecs_cluster" "this" {
id = "arn:aws:ecs:us-east-1:XXXXXXXXXXXXXXX:cluster/dev"
name = "dev"
tags = {
"Environment" = "dev"
}
# (3 unchanged attributes hidden)
+ configuration {
}
# (1 unchanged block hidden)
}
# module.ecs.module.ecs.aws_ecs_cluster_capacity_providers.this[0] will be updated in-place
~ resource "aws_ecs_cluster_capacity_providers" "this" {
~ capacity_providers = [
- "FARGATE_SPOT",
# (1 unchanged element hidden)
]
id = "dev"
# (1 unchanged attribute hidden)
+ default_capacity_provider_strategy {
+ base = 0
+ capacity_provider = "FARGATE"
+ weight = 100
}
}
Plan: 0 to add, 2 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
module.ecs.module.ecs.aws_ecs_cluster.this[0]: Modifying... [id=arn:aws:ecs:us-east-1:XXXXXXXXXXXXXXX:cluster:cluster/dev]
β·
β Error: Request cancelled
β
β with module.ecs.module.ecs.aws_ecs_cluster.this[0],
β on .terraform/modules/ecs.ecs/main.tf line 5, in resource "aws_ecs_cluster" "this":
β 5: resource "aws_ecs_cluster" "this" {
β
β The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled.
β΅
Releasing state lock. This may take a few moments...
Stack trace from the terraform-provider-aws_v4.17.1_x5 plugin:
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 40 [running]:
github.com/hashicorp/terraform-provider-aws/internal/service/ecs.expandClusterConfiguration({0xc0021d02e0, 0x94ce2e8, 0x2})
github.com/hashicorp/terraform-provider-aws/internal/service/ecs/cluster.go:557 +0x113
github.com/hashicorp/terraform-provider-aws/internal/service/ecs.resourceClusterUpdate(0xc002ccb500, {0x8027680, 0xc00037f500})
github.com/hashicorp/terraform-provider-aws/internal/service/ecs/cluster.go:332 +0x2a5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0xa5a7760, {0xa5a7760, 0xc002cfbb60}, 0xd, {0x8027680, 0xc00037f500})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:729 +0x178
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc000d01880, {0xa5a7760, 0xc002cfbb60}, 0xc001692750, 0xc002ccb380, {0x8027680, 0xc00037f500})
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:847 +0x9e5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000296930, {0xa5a76b8, 0xc002c97100}, 0xc002c94d20)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xe3c
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc001ae3860, {0xa5a7760, 0xc002cfb380}, 0xc0001b65b0)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:812 +0x56b
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x92321e0, 0xc001ae3860}, {0xa5a7760, 0xc002cfb380}, 0xc002c8d860, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00013e700, {0xa6b4510, 0xc000cac1a0}, 0xc002186c60, 0xc001aef830, 0x1030dda0, 0x0)
google.golang.org/[email protected]/server.go:1282 +0xccf
google.golang.org/grpc.(*Server).handleStream(0xc00013e700, {0xa6b4510, 0xc000cac1a0}, 0xc002186c60, 0x0)
google.golang.org/[email protected]/server.go:1619 +0xa2a
google.golang.org/grpc.(*Server).serveStreams.func1.2()
google.golang.org/[email protected]/server.go:921 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:919 +0x294
Error: The terraform-provider-aws_v4.17.1_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.