Konubinix' opinionated web of thoughts

Terraform-Aws-Modules/Eks/Aws : ResourceInUseException: Cluster Has Nodegroups Attached

Fleeting

terraform

It seems that there is a bug in https://github.com/hashicorp/terraform-provider-aws, in resourceNodeGroupDelete

It waits for the node group to be deleted, but not for it to actually be removed from the cluster list of nodes. Therefore, when trying to remove the cluster, terraform may fail with the ResourceInUseException: Cluster has nodegroups attached