AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
AWS services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon AWS.

Terminate an Elastic Beanstalk Environment

You can terminate a running AWS Elastic Beanstalk 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 want to preserve, create a snapshot of your current database instance before you terminate the environment. You can use it later 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 you want to terminate.

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

  4. Choose Actions, and then select Terminate Environment.

            Actions menu on the Dashboard page of the Elastic Beanstalk console
  5. Confirm that you are terminating the correct environment, and then choose Terminate.


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

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


To terminate an environment

  • Run the following command.

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


To terminate an environment

  • Call TerminateEnvironment with the following parameter:

    EnvironmentName = SampleAppEnv &Operation=TerminateEnvironment &AuthParams