O'Reilly logo

Play Framework Cookbook - Second Edition by Giancarlo Inductivo, Alexander Reelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying a Play application on AWS Elastic Beanstalk

In this recipe, we will deploy a Play 2 web application on Amazon web services' Elastic Beanstalk. Elastic Beanstalk is Amazon's Platform-as-a-Service offering and allows developers to deploy web applications with the same ease as other PAAS offerings, such as Heroku.

We will package our Play 2 web application as a Docker image and upload it to Elastic Beanstalk as a ZIP package. We will mostly be interacting with the AWS management console using a web browser.

Ensure that you have signed up for an account with AWS here:

http://aws.amazon.com

How to do it...

  1. Create our Play 2 web application using the activator template, computer-database-scala:
     activator new play2-deploy-72 computer-database-scala ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required