Deploying Spring Boot Application in AWS using EC2 & S3 | Microservices Deploy | Maven Clean Install
Вставка
- Опубліковано 17 бер 2024
- 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 yum.corretto.aws/corretto.key
sudo curl -L -o /etc/yum.repos.d/corretto.repo yum.corretto.aws/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:
github.com/cypcodestudio/wond...
JWT IO:
jwt.io/
Recommendation:
Spring Security:
• UPDATED: Spring Securi...
PLEASE SUPPORT THE CHANNEL:
Donate from $5
Link: paypal.me/cypcodestudios?coun...
Thank you very much for watching. Please do Like and Subscribe - Наука та технологія
Nice video thanks