Cleanup
To remove all of the components deployed by the Terraform IaC, perform the following steps. Note that removal happens in reverse order of deployment.
Step 1 – Using terraform destroy to remove kubernetes-config elements
Since you should still be in the kubernetes-config
directory, you can proceed immediately to the terraform destroy
command shown here:
terraform destroy -var=edge_city=atlanta -auto-approve
When the process is complete, you should see an output similar to that shown in the following figure:

Figure 13.20 – Using terraform destroy to remove kubernetes-config elements
Step 2 – Using terraform destroy to remove eks-cluster elements
First, you will need to change directory to eks-cluster
using the following command:
cd ../eks-cluster
Once you're there, you can issue the exact same terraform destroy
command you did in step 1:
terraform destroy -var=edge_city=atlanta -auto-approve
Upon...