Deploy a Web App Using AWS Copilot


Module 2: Clean Up Resources

In this module, you will clean up the resources that you deployed in the previous module


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 per month, or $0.04 per hour, to run.

What you will accomplish

  • Clean up all resources used by AWS Copilot

 Minimum time to complete

< 2 minutes


  • AWS account with administrator-level access**
  • Recommended browser: The latest version of Chrome or Firefox

[**]Accounts created within the past 24 hours might not yet have access to the services required for this tutorial.


Delete the Cloud-Based Infrastructure

AWS Copilot makes it easy to delete your infrastructure with just one command. 

Open your terminal and enter the following command:

copilot app delete

Sure? Yes
✔ Delete stack copilot-guide-prod-web-app
- Update regional resources with stack set "copilot-guide-infrastructure" [succeeded] [9.4s]
- Update resources in region "ap-southeast-1" [update complete] [7.0s]

✔ Deleted service web-app from application copilot-guide.
✔ Retained IAM roles for the "prod" environment
✔ Delete environment stack copilot-guide-prod
✔ Deleted environment "prod" from application "copilot-guide".
✔ Cleaned up deployment resources.
✔ Deleted regional resources for application "copilot-guide"
✔ Delete application roles stack copilot-guide-infrastructure-roles
✔ Deleted application configuration.
✔ Deleted local .workspace file.

This is the end of this guide; we hope you enjoyed it. If you have any feedback, please use the feedback button at the side of the page. 

Before you close this guide, we recommend terminating 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 per month to run in the current setup, or $0.04 per hour.


Congratulations! You have finished the Deploy a Web App Using AWS Copilot guide. Continue your journey with AWS by following the next steps section.

Was this page helpful?