| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
You can deploy existing AWS Elastic Beanstalk application versions to existing environments. You may want to do this if, for instance, you need to roll back to a previous version of your application. This section describes how you can use the AWS Management Console, the CLI, or APIs to deploy an existing AWS Elastic Beanstalk application version to an existing environment.
To deploy an existing application version to an existing environment
Open the AWS Elastic Beanstalk console at https://console.aws.amazon.com/elasticbeanstalk/.
From the region list, select a region.
Select the application from the drop-down list, and then click the Versions tab in the AWS Elastic Beanstalk console.
Select the check box next to the version label of the application version you want to deploy.

Click Deploy Version.

Click the environment in the Deploy to field, and then click Deploy Version.
A dialog box confirms the update to your environment. Click Close.
AWS Elastic Beanstalk now deploys your file to your Amazon EC2 instances. You will see the environment turn gray and the status changed to "Updating." When the deployment is complete, there's an application health check. The environment returns to green when the application responds to the health check.
To view your application version
Select your environment in the Environments pane.
Click the Events tab to view current information on the deployment of the new version.
Click View Running Version in the Overview tab to see the new version of your application.
To deploy an existing application version to an existing environment
Make sure your application version exists.
PROMPT> elastic-beanstalk-describe-application-versions -a [Application Name] -l [Version Label]
Update your environment with your existing application version.
PROMPT> elastic-beanstalk-update-environment -e [Environment Name] -l [Version Label] -d [Description]
Determine if the environment is Green and Ready.
PROMPT> elastic-beanstalk-describe-environments -e [Environment Name]
To deploy an existing application version to an existing environment
Call UpdateEnvironment with the following
parameters:
EnvironmentName =
SampleAppEnv
VersionLabel = FirstRelease
Description =
description
Example
https://elasticbeanstalk.us-east-1.amazon.com/?EnvironmentName=MySampleAppEnv &Description=description &VersionLabel=FirstRelease &Operation=UpdateEnvironment &AuthParams
Call DescribeEnvironments with the following
parameter:
EnvironmentName =
SampleAppEnv
Example
https://elasticbeanstalk.us-east-1.amazon.com/?EnvironmentName=SampleAppEnv &Operation=DescribeEnvironments &AuthParams