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.

Step 3: Deploy a New Version of Your Application

Periodically, you might need to deploy a new version of your application. You can deploy a new version at any time, as long as no other update operations are in progress on your environment.

The application version that you started this tutorial with is called Sample Application.

To update your application version

  1. Download the sample application that matches your environment's platform. Use one of the following applications.

  2. Open the Elastic Beanstalk console.

  3. From the Elastic Beanstalk applications page, choose getting-started-app, and then choose GettingStartedApp-env.

  4. In the Overview section, choose Upload and Deploy.

  5. Choose Choose File, and then upload the sample application source bundle that you downloaded.

    The console automatically fills in the Version label with a new unique label. If you type in your own version label, ensure that it's unique.

  6. Choose Deploy.

While Elastic Beanstalk deploys your file to your Amazon EC2 instances, you can view the deployment status on the environment's dashboard. While the application version is updated, the Environment Health status is gray. When the deployment is complete, Elastic Beanstalk performs an application health check. When the application responds to the health check, it's considered healthy and the status returns to green. The environment dashboard shows the new Running Version—the name you provided as the Version label.

Elastic Beanstalk also uploads your new application version and adds it to the table of application versions. To view the table, choose getting-started-app, and then choose Application Versions.