Deploying Spring Boot Application in AWS using EC2 & S3 | Microservices Deploy | Maven Clean Install
This video demonstrates how to deploy your Spring boot Application using AWS EC2 instance and S3 Storage. Spring Boot 3 Microservices Architecture, Java 17, AWS RDS Postgres Database .
You'll discover how simple it is to use deploy your application and access your application after deployment, create all required Spring Profiles (Localhost, Test, UAT, Production) as well as environments (Test, UAT, Production). We'll go through some security rules to make your instance as well as application publicly available. In the end, we'll verify our deployment by sending basic API requests via Postman.
Commands in EC2 Instance:
sudo rpm --import [ Ссылка ]
sudo curl -L -o /etc/yum.repos.d/corretto.repo [ Ссылка ]
Install Java:
sudo yum install -y java-17-amazon-corretto-devel
java -version
Import Deployment Artefact:
wget s3-object-url
Run Application on environment profile
java -jar -Dspring.profiles.active=test artifact-name.jar
S3 Bucket Public:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::bucket-name/*"
]
}
]
}
Github:
[ Ссылка ]
JWT IO:
[ Ссылка ]
Recommendation:
Spring Security:
[ Ссылка ]
PLEASE SUPPORT THE CHANNEL:
Donate from $5
Link: [ Ссылка ]
Thank you very much for watching. Please do Like and Subscribe
![](https://s2.save4k.ru/pic/grjqzyS7vZY/maxresdefault.jpg)