Cleaning Up Resources
Objective
This guide shows you how to delete all the resources you created in this workshop.
Initial Setup
Navigate to the root directory of the python-fastapi-demo-docker project where your environment variables are sourced:
cd ~/environment/python-fastapi-demo-docker
Cleanup
To avoid incurring future charges, you should delete the resources you created during this workshop.
- EKS Auto Mode
- Managed Node Groups
# Delete the ECR repository
aws ecr delete-repository --repository-name fastapi-microservices --force
# Delete FastAPI services
kubectl delete -f eks/deploy-app-python.yaml
# Delete PostgreSQL services
kubectl delete -f eks/deploy-db-python.yaml
# Delete the cluster
eksctl delete cluster -f eks/create-automode-python.yaml
# Delete the ECR repository
aws ecr delete-repository --repository-name fastapi-microservices --force
# Delete FastAPI services
kubectl delete -f eks/deploy-app-python.yaml
# Delete PostgreSQL services
kubectl delete -f eks/deploy-db-python.yaml
# Delete the cluster
eksctl delete cluster -f eks/create-mng-python.yaml