Project 1: Image Processing Application
http://vaibhavdes.github.io/aws-cloud-practice
https://www.mindmeister.com/1574148882/aws-poc
Attach Trigger as S3 Bucket where Original Image will be uploaded
- Lambda : S3 Read and Write / SQS Send Message / CloudWatch Log Group
- EC2 : S3 Read and Write / SQS Read & Delete Message / DynamoDB Read/Write
- TCP : 8080 : Anywhere (SPRING PROJECT PORT)
- HTTP : 80 (Default) : AnyWhere (If hosting any Static WebPage)
- SSH : (Default)
-
Connect to EC2 via SSH or in Browser Way
-
Execute Following Commands
sudo su
yum update -y
yum install httpd -y
java -version
yum install java-1.8.0 -y
download the JAR of Spring Project from S3 (Replace the Bucket Name, Key/File Name, and AZ-Region where Bucket is Present are passed as parameter)
aws s3 cp s3://bucketnamedemo/awsdemo-0.0.1-SNAPSHOT.jar / --region=us-east-1
java -jar awsdemo-0.0.1-SNAPSHOT.jar
in case you are detached from application and still its using port and running (Replace Port Number If you are using other)
lsof -i:8080
kill -9 $(lsof -t -i:8080)