Closed kostaleonard closed 2 years ago
In this terraform guide, the developers put the EKS and Kubernetes terraform plans in separate directories, applying first the EKS plan and then the Kubernetes plan. To clean up, delete the Kubernetes resources first, then the EKS resources.
The last time that I ran
terraform destroy
, it failed after 20 minutes. It had cleaned up most resources, perhaps everything except the load balancer that was provisioned as part of the Kubernetes manifest and the VPC subnets. The VPC subnets couldn't be deleted because some resource (presumably the load balancer) was dependent on it. I think we can maketerraform destroy
work correctly by performing either of the following:terraform destroy
, although I don't know if this would completely work.For the time being, the workaround is to run
terraform destroy
and then clean up resources in AWS console.