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

Introduction

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

 Time to Complete

< 2 minutes

 Module Prereqs

  • 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.

Implementation

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.

Conclusion

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.

Was this page helpful?

Thank you for your feedback
Feedback helps us improve our experience. If you would like to share more details on the feedback, please click the feedback button below.
Close