Tamil SPRING BOOT APPLICATION IN AWS EC2 | How To Run Spring Boot Application AWS EC2 | InterviewDOT

591 views · Published 8 July 2018 · 20:18 · Indexed 14 November 2026

Channel: Interview DOT · 2018 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. How To Run Spring Boot Application in AWS EC2 Instance ?
========================================================

https://github.com/net-vinothkumar/springbootappinaws

1. Create a Spring Boot Demo application.

2. Ensure That The Built Demo Spring Boot Application is Running Locally - Success.

3. Create a Trial AWS Account With Your Email Address.

4. Login to Created AWS Account Using AWS Console - https://console.aws.amazon.com/

5. Create a S3 BUCKET in AWS

6. Upload The Built Spring Boot Application to AWS S3 Bucket + Grant Public Access To This Object.

7. Create an AWS EC2 - Elastic Compute Cloud - Instance in AWS.

 a  Go to the AWS console. Select the ‘EC2 Service‘.

 b Then, select ‘instances‘ and click on the ‘Launch Instance‘ button. There are no of OS, we can select as a server Ubuntu, RedHat, Amazon Linux, SUSE Linux. For this tutorial, we selected the Ubuntu.

 c Select the free tier eligible instance and launch it.

 d During the launch, it will ask for a creating security key. Select the ‘Create a new key pair‘ and give a name as a 'springbootapplication'. Finally, download the key.

 e If you are using Mac OS or Linux give a permission to the file using a following command.

 f chmod 400 springdemoapplication.pem

8. From Your Laptop Login To The Created AWS EC2 Instance Using SSH.

  ssh -i "springdemoapplication.pem" [email protected]

9. Ensure Java Is Installed In Your AWS EC2 Instance (VM) or Install Java in AWS EC2 Instance.
 sudo yum install java-1.8.0
 sudo yum remove java-1.7.0-openjdk

10. Get The Spring Boot Application From AWS S3 Bucket To AWS EC2 Instance.
  wget https://s3.us-east-2.amazonaws.com/s3-spring-bucket/spring-boot-web-thymeleaf-1.0.jar

11. Please enable 8080 For Your Application In AWS Security Group

 You have to choose "Custom TCP rule" in the dropdown.

 Then you will be able to change the port to 8080.

 https://stackoverflow.com/questions/26338301/ec2-how-to-add-port-8080-in-security-group

12. Finally Start The Spring Boot Application In AWS EC2 Instance :

ec2-user@ip-172-31-20-5 ~$ java -jar spring-boot-web-thymeleaf-1.0.jar 


Recommeded AWS Course in Tamil :

Mr.Susindran Suruli
AWS solution architec and Redhat certified engineer RHCE

https://www.udemy.com/aws-tamil-tutorial-from-zero-to-hero/learn/v4/overview

The Amazon Elastic Compute Cloud Web service Amazon EC2 provides secure, scalable computing capabilities in the cloud. The service is designed to make cloud computing easier for developers.

Amazon EC2's simple web service interface makes it easy to get and configure capacity. It gives you complete control over your computing resources and execution in Amazon's proven computing environment. Amazon EC2 shortens the time it takes to book and start new server instances to a few minutes. This allows you to quickly adjust the capacity as needed to meet your data processing needs. By paying only for the capacity you actually use, Amazon EC2 changes the economics of computing operations. Amazon EC2 provides developers with the tools to build fail-safe applications and isolate them from common failure scenarios.
The free AWS quota includes 750 hours of Linux and Windows t2.micro instances for one year each month. To stay within the free usage quota, use only EC2 Micro instances.

View AWS free quota details 

advantages
ELASTIC WEB-BASED COMPUTING
Amazon EC2 allows you to increase or decrease capacity in minutes, not hours or days. You can run one, hundreds or even thousands of server instances at the same time. With Amazon EC2 Auto Scaling , you can also ensure the availability of your EC2 fleet and automatically scale up and down your fleet to meet your needs to minimize costs at peak performance. To scale multiple services, you can use AWS Auto Scaling .
COMPLETE CONTROL
You have complete control over your instances, including root access, and the ability to interact with your instances as you would with any other device. You can pause any instance without losing your data on the boot partition. You can then restart the same instance using the web service APIs. An instance can be restarted remotely through Web service APIs, with access to its console output.
FLEXIBLE CLOUD HOSTING SERVICES
You can choose from several instance types, operating systems, and software packages. Amazon EC2 allows you to select a configuration of memory, CPU, instance storage, and boot partition size that is optimal for your desired operating system and application. Various Linux distributions and Microsoft Windows Server are available as operating system.

More from this channel