Cleanup

At the same folder we are working in run the following commands:

kubectl delete -f /home/ec2-user/environment/spot-workshop-template/vng-example.yaml
kubectl delete -f /home/ec2-user/environment/spot-workshop-template/vng-example-2.yaml
kubectl delete -f /home/ec2-user/environment/spot-workshop-template/headroom-example.yaml
eksctl delete cluster --name $(kubectl config current-context | cut -d'@' -f2 | cut -d'.' -f1) --wait

After running the last command, your output should look like the one below:

eksctl_delete

The full deletion of the EKS cluster and nodegroup can take up to 20 minutes. Please don’t navigate away from this page.

Now let’s navigate back to Cloudshell:

https://console.aws.amazon.com/cloudshell/home

Then run the following command to delete the CloudFormation stack:

aws cloudformation delete-stack --stack-name eks-workshop-ide

This will finish deleting the Cloud9 IDE.

Enter the Spot console, navigate to the Virtual Node Groups tab in the relevant Ocean cluster, select all the VNGs created through this workshop (example-1, example-2, example-3-1, example-3-2) and press the Delete button vng_view

Specify the required Delete me string and press the Delete button. vng_view