AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Terminate an Environment

You can terminate a running environment using the AWS Management Console to avoid incurring charges for unused AWS resources. For more information about terminating an environment using the AWS Toolkit for Eclipse, see Terminating an Environment.


You can always launch a new environment using the same version later. If you have data from an environment that you would like to preserve, create a snapshot of your current database instance before you terminate the environment. You can later use it as the basis for new DB instance when you create a new environment. For more information, see Creating a DB Snapshot in the Amazon Relational Database Service User Guide.

AWS Management Console

To terminate an environment

  1. Open the Elastic Beanstalk console.

  2. From the region list, select the region that includes the environment that want to terminate.

  3. From the Elastic Beanstalk console applications page, click the name of the environment that you want to terminate.

  4. Click Actions and the select Terminate Environment.

  5. Confirm that you are terminating the correct environment and then click Terminate.


    When you terminate your environment, the CNAME associated with the terminated environment becomes available for anyone to use.

    It will take a few minutes for Elastic Beanstalk to terminate the AWS resources running in the environment.


To terminate an environment

  • $ aws elasticbeanstalk terminate-environment --environment-name my-env


To terminate an environment

  • Call TerminateEnvironment with the following parameter:

    • EnvironmentName = SampleAppEnv