Destroying the cluster's resources
You can follow the instructions in the Destroying the network and cluster infrastructure section of Chapter 3, Provisioning Kubernetes Clusters Using AWS and Terraform, to destroy the Kubernetes cluster and its related AWS resources. Please be sure to destroy the resources in the following order:
- Cluster
packtclusters
resources - Cluster VPC resources
- Terraform shared state resources
After executing the previous steps, all of the cluster AWS resources should be destroyed successfully. You can still log in to the AWS web console and double-check the destruction of the resources to avoid any unwanted AWS charges.