Getting Started Spring Boot Application on AWS — S3 (Part 2)

[As Elastic IP comes provided from AWS Address Pool (and are limited), Once you get one, if you don’t assign it to any running instance, you will be charged.]

sudo suyum update -yyum install httpd -y# check if java is installed
java -version
# if no version found, Install Java with following command
yum install java-1.8.0 -y
# Make App Directory to Save Spring Boot Jar
mkdir app
# Make Sure to Change Bucket/Object Name and Region of S3 Bucketaws s3 cp s3://bucketnamedemo/app-0.0.1-SNAPSHOT.jar /app --region=us-east-1
# Make Sure to Change Build File Name as per your Projectjava -jar /app/app-0.0.1-SNAPSHOT.jar# To Stop App Press Crtl + C# Worst Case - As Our App will be using 8080 Port and is still running in background, then we cannot use same port, run below commands lsof -i:8080
kill -9 $(lsof -t -i:8080)



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store