Deploying a Java Web Application using AWS EBS

2021.10.04

AWS

Is a secure cloud service platform that offers compute power, database storage. content delivery, network, and other functionality to help businesses scale and grow. It is one of the first cloud vendors to start services in the year 2006. It offers all the 3 service models namely IAAS, PAAS, and SAAS. Some of the notable domains in AWS are Compute, Migration, Storage, Network and Content Delivery, Management Tools, Database, Messaging, Security and Identity Compliance, and many more.

Amazon Elastic Beanstalk (AWS EBS)

It is a PAAS service used for deploying and scaling web applications and services developed with Java, .NET, PHP, Node.js, etc on familiar servers such as Apache, Nginx, Tomcat, and IIS. One of the fast and simplest ways to deploy AWS. Focus on writing code rather than spending managing and configuring services. Automatically scale applications up and down based on needs. Give freedom to select AWS services, like EC2 instance type, that is optimal for your application.

Demo

Click on create Application Write your preferred Application Name For this blog, I am choosing Tomcat Platform Choosing Tomcat 7 with Java 7 running on 64bit Amazon Linux in the platform branch Click on upload code, local file - > click choose file, here I am using Calender.war file (For this file search on google and you'll get it) Next Click on configure more options For public access, In the network section click on edit. Checkbox the public IP Address, checkbox the ap-south-1a availability zone. Finally, click Save.

Now click on Create App

Checking if the application is deployed Deployed Application

Useful Functionalities in EBS

For troubleshooting, debugging, analysis, and know the behaviour of application Logs can be made use of. Click on the download option and you'll see the requested logs. Make use of Events for various purposes as shown below. By default, the server cannot be accessed, if you want to access the server, click configuration - > security (edit) -> associate key - pair you'll be able access it. Click on your preferred key pair and click apply