Step 3: Deploy a new version of your application - Amazon Elastic Beanstalk
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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, and in the Regions list, select your Amazon Web Services Region.

  3. In the navigation pane, choose Environments, and then choose the name of your environment from the list.

    Note

    If you have many environments, use the search bar to filter the environment list.

  4. On the environment overview page, choose Upload and deploy.

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

    
            Upload and deploy dialog.

    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 overview. 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 overview 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 Application versions under getting-started-app on the navigation pane.