Deploy a Web App using AWS Copilot
GETTING STARTED GUIDE
Module 2: Clean Up Resources
In this module, you will clean up the resources that you deployed in previous modules
You have now completed this guide, but you still need to clean up the resources created during this guide. If your account is still in the free tier, it will cost $32.13 / month to run, or 7.8c USD per hour.
What You Will Learn
- Clean up all resources used by an AWS Copilot
Delete the Cloud-Based Infrastructure
AWS Copilot makes it easy to delete your infrastructure with just one command.
Open your terminal and type the following command:
copilot app delete Sure? Yes ✔ Deleted service web-app from environment prod.. ✔ Deleted resources of service web-app from application copilot-guide.. ✔ Deleted service web-app from application copilot-guide. ✔ Deleted environment prod from application copilot-guide.. ✔ Cleaned up deployment resources.. ✔ Deleted application resources.. ✔ Deleted application configuration.. ✔ Deleted local .workspace file. #copilot svc delete web-app Only found one application, defaulting to: getting-started-with-copilot Only found one service, defaulting to: web-app Sure? Yes ✔ Deleted service web-app from environment prod.. ✔ Deleted resources of service web-app from application getting-started-with-copilot.. ✔ Deleted service web-app from application getting-started-with-copilot. # copilot env delete prod copilot env delete prod Only found one application, defaulting to: getting-started-with-copilot Only found one environment, defaulting to: prod Sure? Yes ✔ Deleted environment prod from application getting-started-with-copilot..
This is the end of this guide, we hope you enjoyed it. If you have any feedback, please use the feedback button at the top of this page.
Before you close this guide, we recommend destroying the infrastructure you just created after you have finished testing it. If you decide to keep it running for additional testing, please note that it will cost $32.13 / month to run in the current setup, or 0.04c USD per hour.
Congratulations! You have finished the Deploy a Containerized Web Application using AWS Copilot getting started guide. Continue your journey with AWS by following the next steps section.