AWS Elastic Beanstalk - Deploy Spring Boot App with MySQL Database

  Рет қаралды 2,485

Code Java

Code Java

6 ай бұрын

This video is a guide about deployment of a Spring Boot application with MySQL database on Amazon Web Services (AWS) Cloud using Elastic Beanstalk web management console.
Here are the steps presented in this video:
1. Package & Test Spring Boot app on localhost
2. Create new application
3. Configure service access
4. Configure database service
5. Deploy the application
6. Configure environment variables
7. Access newly deployed application
8. Check AWS related services
9. Terminate environment
10. Undeploy the application
Prerequisites:
An AWS account (root user)
An IAM user that has administrative access
An executable JAR file of a Spring Boot application

Пікірлер: 26
@user-vx5sn9nw4u
@user-vx5sn9nw4u 2 ай бұрын
Thats the video I have been looking for months, also would be incredible if u will add https protocol to that instance
@CodeJava
@CodeJava 2 ай бұрын
Glad it helped. I will study about that HTTPS
@grrlgd3835
@grrlgd3835 Ай бұрын
excellent content as usual. thanks
@CodeJava
@CodeJava Ай бұрын
Glad you enjoyed it
@brazo98
@brazo98 6 ай бұрын
Nammmm I hope you are ok. You movies evertime awesome. I love it. Thx a lot for your support. 😻😻😻
@CodeJava
@CodeJava 6 ай бұрын
i'm glad to see your comments as always. Thanks for your kind support :) All the best!
@kongarasrikiran7727
@kongarasrikiran7727 4 ай бұрын
@@CodeJavaWhen enabling database i am getting like below exception can you pls tell me what is the solution for this Configuration validation exception: Invalid option value: 'db.t2.micro' (Namespace: 'aws:rds:dbinstance', OptionName: 'DBInstanceClass'): DBInstanceClass db.t2.micro not supported for mysql db engine. please reply to this bro
@luciano5026
@luciano5026 3 ай бұрын
Muchas gracias!!!!!!
@CodeJava
@CodeJava 3 ай бұрын
Glad it helped. You're welcome.
@johnsandoval1855
@johnsandoval1855 6 ай бұрын
This was probably the first video i found using the modern AWS and it was very easy to follow! However, I my site is receiving a "404 not found ("/")" error. I am really frustrated because I finally feel so close with your tutorial but cant figure out why this is is happening. It works absolutely fine on my localhost but now when it is deployed it does not work! Could you or anyone help me out?
@CodeJava
@CodeJava 6 ай бұрын
did you set custom context path? If so, the app URL is customdomain.amazon.com/contextpath. Also check the last log lines to see what really happened.
@johnsandoval1855
@johnsandoval1855 6 ай бұрын
@@CodeJava I was reading online to see what could have happened... someone said it is possible that my JAR file does not carry my WEB-INF folder and views. That would definitely trigger a 404 I think? Since it can't complete the Get ("/") method? I'm not sure. This is my first deployment lol. I am trying it again today as a WAR file, they said that might work.
@CodeJava
@CodeJava 6 ай бұрын
that's a possible cause. Try to make the JAR file running on localhost first. If it works on localhost (in command line) it will very likely work on AWS.
@VenkatFreelancer
@VenkatFreelancer 4 ай бұрын
When enabling database i am getting like below exception can you pls tell me what is the solution for this Configuration validation exception: Invalid option value: 'db.t2.micro' (Namespace: 'aws:rds:dbinstance', OptionName: 'DBInstanceClass'): DBInstanceClass db.t2.micro not supported for mysql db engine.
@kongarasrikiran7727
@kongarasrikiran7727 4 ай бұрын
Same with me!!!! i tried everything possible. Please reply if you found a solution.
@VenkatFreelancer
@VenkatFreelancer 4 ай бұрын
@@kongarasrikiran7727 for that I tried another way first I created application ec2 and after that we can give to database to that instance. You can try like that
@CodeJava
@CodeJava 4 ай бұрын
or change the db instance class ?
@janphillipdacallos4214
@janphillipdacallos4214 26 күн бұрын
Hello sir. I still can't access my springboot api. I already set the server port into 5000 but then, when I tried to upload and access the domain again, bad gate way error still appeared. How to fix this? Great video by the way!
@CodeJava
@CodeJava 25 күн бұрын
you need to check server's logs to see what really caused the error.
@benamngungoc797
@benamngungoc797 3 ай бұрын
Anh cho em hỏi nếu public ip database ra để kết nối xuống mysql workbench thì mất phí phải ko ạ? Em dùng RDS nhưng mà thấy mất phí
@CodeJava
@CodeJava 3 ай бұрын
nó có tính phí dữ lắm đó em. Chắc để hạn chế kết nối trực tiếp.
@benamngungoc797
@benamngungoc797 3 ай бұрын
@@CodeJava dạ vâng ạ
@hiimluvn
@hiimluvn 2 ай бұрын
@@CodeJava vậy thay vì mình dùng ip trực tiếp api thì mình dùng cái link dài dài nó tạo là không bị tính phí hả anh
@CodeJava
@CodeJava 2 ай бұрын
@@hiimluvn kiểu gì nó cũng tính phí remote access hết em ạ.
@fozant7156
@fozant7156 6 ай бұрын
is it free bro ?
@CodeJava
@CodeJava 6 ай бұрын
as far as I know, AWS is free for 1 year (trial).
How to Easily Deploy a Spring Boot Application to AWS EC2
17:42
The Dev World - by Sergio Lema
Рет қаралды 50 М.
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 6 МЛН
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 18 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 61 МЛН
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 35 МЛН
Deploy .NET 8 Web API in under 10 Minutes with AWS Elastic Beanstalk!
17:02
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 21 М.
Top AWS Services A Data Engineer Should Know
13:11
DataEng Uncomplicated
Рет қаралды 157 М.
AWS RDS with Spring Boot - A Step-By-Step Guide @ashokit
15:50
Самые крутые школьные гаджеты
0:49
ВАЖНО! Не проверяйте на своем iPhone после установки на экран!
0:19
ГЛАЗУРЬ СТЕКЛО для iPhone и аксессуары OTU
Рет қаралды 6 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 465 М.
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 129 М.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 2,3 МЛН