AWS — Deploying Angular App With Java On Elastic Beanstalk
AWS — Deploying Angular App With Java On Elastic Beanstalk

A step by step guide with an example project

Photo by SpaceX on Unsplash

AWS provides more than 100 services and it’s very important to know which service you should select for your needs. If you want to deploy an application quickly without any worry about the underlying infrastructure, AWS Elastic Beanstalk is the answer. Elastic Beanstalk reduces management complexity without restricting choice or control. You simply upload your application, and Elastic Beanstalk automatically handles the details of capacity provisioning, load balancing, scaling, and application health monitoring.

In this post, we are going to deploy Angular application with java environment. There are other technologies or environments that AWS supports such as Go, Java, NodeJS, .Net, etc.

Introduction

Example Project

Prerequisites

Build the Project

Deploy on Elastic Beanstalk

Debugging and Update the Deployment

Route 53

Cleaning Up

Things To Consider

Summary

Conclusion

Introduction

If you want to deploy an application without worrying about the underlying infrastructure, Elastic Beanstalk is the solution. When you build the app and upload the app in the form of zip or war, Elastic Beanstalk would take care of provisioning underlying infrastructure such as a fleet of EC2 instances, auto calling groups, monitoring, etc.

The infrastructure provisioned by Elastic Beanstalk depends on the technology chosen while uploading your app. For example, we are going to deploy the Angular with Java backend on Elastic Beanstalk so we need to choose the Java environment. If you want to know more about Elastic Beanstalk here is the link.

Environment Setup

As you see in the above figure, we build our project and create a zip. Once we build the zip, we upload that zip on the Elastic Beanstalk environment. If you have a custom domain you can point that to the elastic beanstalk URL so that your app can be accessible to the public through that URL.
['Bhargav Bachina']
['Cloud Computing', 'Java', 'Angular', 'AWS', 'Programming']