Deploy a Web App on AWS Elastic Beanstalk


Module 4: Clean Up Your Resources

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


In this last part of the guide, you will learn how to remove all the different AWS resources you created early on. If your account is still on the free tier, this would not cost you anything, unless you have other free tier resources running already.

What You Will Learn

  • How to remove AWS resources created with a CDK application

 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.


Cleaning up your AWS environment

The benefit of using AWS CDK for all infrastructure is that cleaning up your AWS environment is very easy. Just run the following command in your terminal inside the CDK application directory:

cdk destroy

This will destroy all resources you created during this guide.

You can verify that all the infrastructure was removed by going to the AWS CloudFormation management console, and checking that the 2 stacks that were created in the previous module are gone.


Congratulations! You have finished the Build a Web Application on AWS Elastic Beanstalk getting started guide. Continue your journey with AWS by following the next steps section below.

Was this page helpful?