Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 2.71 KB

File metadata and controls

50 lines (27 loc) · 2.71 KB

Running Java EE on Elastic Beanstalk

AWS Elastic Beanstalk aims at taking control of the underlying infrastructure necessary to run applications, offering to handle the details of capacity provisioning, load balancing, scaling, and application health monitoring.

This PaaS offering supports several platforms but might be considered somewhat limited to the Java ecosystem by offering Java SE (jar), Tomcat and a preconfigured Docker image with GlassFish 4.

The preconfigured images are available on Docker Hub which can be an option for local testing.

Setup Preconfigured Container

  • Open Elastic Beanstalk and click on Get Started to create a Web Application

alt text

  • Enter the Application name and select the GlassFish platform. Select the Upload your code radio button and click Upload

alt text

  • The Upload your code screen will open, select a local file or provide a S3 URL. Give a version label and click Upload

alt text

  • Back to the Create a web app page, click Configure more options button

alt text

  • The configuration presets could move from a Low cost to High availability option. On the Instances section, click Modify to change the Instance type to t2.medium for higher Memory and CPU. Save the changes

alt text

  • Take a moment to review all the available configuration and click Create app

alt text

alt text

  • After a few minutes the infrastructure will be provisioned and the application deployed

alt text

  • Click on the environment URL to open the Cargo Tracker application

alt text

References