Skip to main content

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.

# 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