AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Deploying Versions to Existing Environments

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.

AWS Management Console

To deploy an existing application version to an existing environment

  1. Open the AWS Elastic Beanstalk console at https://console.aws.amazon.com/elasticbeanstalk/.

  2. From the region list, select a region.

  3. Select the application from the drop-down list, and then click the Versions tab in the AWS Elastic Beanstalk console.

  4. Select the check box next to the version label of the application version you want to deploy.

  5. Click Deploy Version.

  6. Click the environment in the Deploy to field, and then click Deploy Version.

  7. 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

  1. Select your environment in the Environments pane.

  2. Click the Events tab to view current information on the deployment of the new version.

  3. Click View Running Version in the Overview tab to see the new version of your application.

CLI

To deploy an existing application version to an existing environment

  1. Make sure your application version exists.

    PROMPT> elastic-beanstalk-describe-application-versions -a [Application Name] -l [Version Label]

  2. Update your environment with your existing application version.

    PROMPT> elastic-beanstalk-update-environment -e [Environment Name] -l [Version Label] -d [Description]

  3. Determine if the environment is Green and Ready.

    PROMPT> elastic-beanstalk-describe-environments -e [Environment Name]

API

To deploy an existing application version to an existing environment

  1. 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  

  2. Call DescribeEnvironments with the following parameter:

    • EnvironmentName = SampleAppEnv

    Example

    https://elasticbeanstalk.us-east-1.amazon.com/?EnvironmentName=SampleAppEnv
    &Operation=DescribeEnvironments
    &AuthParams