| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Terminates the specified environment.
elastic-beanstalk-terminate-environment
[-e [
name] |
-E [id]]
-t
| Name | Description | Required |
|---|---|---|
|
|
The name of the environment to terminate. Type: String Default: None Length Constraints: Minimum value of 4. Maximum value of 23. |
Conditional |
|
|
The ID of the environment to terminate. Type: String Default: None |
Conditional |
|
|
Indicates whether the associated AWS resources should shut down when the environment is terminated:
Type: Boolean Valid Values: Default: true |
No |
The command returns a table with the following information:
ApplicationName—The name of the application associated with this environment.
CNAME—The URL to the CNAME for this environment.
DateCreated—The date the environment was created.
DateUpdated—The date the environment was last updated.
Description—The description of the environment.
EndpointURL—The URL to the LoadBalancer for this environment.
EnvironmentID—The ID of this environment.
EnvironmentName—The name of this environment.
Health—Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:
Red: Indicates the environment is not responsive. Occurs when three or more
consecutive failures occur for an environment.
Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur
for an environment.
Green: Indicates the environment is healthy and fully functional.
Grey: Default health for a new environment. The environment is not fully launched and
health checks have not started or health checks are suspended during an UpdateEnvironment or
RestartEnvironmentrequest.
Resources—A list of AWS resources used in this environment.
SolutionStackName—The name of the SolutionStack deployed
with this environment.
Status—The current operational status of the environment:
Launching: Environment is in the process of initial deployment.
Updating: Environment is in the process of updating its configuration settings or
application version.
Ready: Environment is available to have an action performed on it, such as update or
terminate.
Terminating: Environment is in the shut-down process.
Terminated: Environment is not running.
TemplateName—The name of the configuration template used to originally launch this environment.
VersionLabel—The application version deployed in this environment.
This example shows how to terminate an environment.
PROMPT> elastic-beanstalk-terminate-environment -e MySampleAppEnv