Configure Security Group
Add new Security Group
Type: “Custom TCP Rule”
Protocol: TCP
Port Range: 8080
Source: “Anywhere”
Description: “Spring Boot Web Services”
Deployment
EC2 Instance Configuration
Launch the Instance
Create a new key pair named “springboot-git-wozu-labone.pem”
Deployment
EC2 Instance Key Pair
Save key to directory “springboot-git-wozu-labone.pem”
Deployment
EC2 Instance Key Creation
The instance is created and initializing
The Instance may take 5-10min to complete initializing
Deployment
EC2 Instance Initialization
1. Open Putty Key Generator
2. Click Load
4. Open “springboot-git-wozu-labone.pem”
3. Click “All Files to show the .pem files”
Deployment
Putty Key Generator
1. Click Connect
Deployment
Connect to AWS EC2 Instance
1. Click “EC2 Instance Connect”
2. Locate the User name “ec2-user”
3. Open Notepad and document the
User name “ec2-user”
Deployment
Connect to AWS EC2 Instance
1. Enter command
wget https://springboot-git-wozu-labone.s3.us-east-2.amazonaws.com/springboot-git-juno-0.0.1-SNAPSHOT.jar
Deployment
Install JAR File into Putty Root Directory
1. Enter command into Putty Terminal
dir
- The command will show the JAR file
installed in the Putty root directory
Deployment
Install Java Run-time
1.Insert following command into Putty Terminal to
run JAR file as SpringBoot API
java -jar springboot-git-juno-0.0.1-SNAPSHOT.jar
Run Instance from Putty
Deployment
1.Open bowser and enter MY AWS DOMAIN (Public IPv4 DNS) followed by URL for Java API
ec2-18-216-118-101.us-east-2.compute.amazonaws.com:8080/api/greetings/greeting?name=hs
Connect to EC2 Instance from Browser
Deployment