AWS Elastic Beanstalk
Developer Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

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.

Elastic Beanstalk might fail to terminate your environment. One common reason for this failure is that another environment's security group has a dependency on the security group of the environment you're trying to terminate. A way to avoid this condition is described in Security Groups on the EC2 Instances page of this 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