AWS Elastic Beanstalk - Deploy Simple Spring Boot Application
Vložit
- čas přidán 27. 07. 2024
- This video is a step-by-step guide about deployment of a simple Spring Boot application (without database) on AWS Cloud with Elastic Beanstalk using AWS web console.
You'll learn the following steps for deploying a Spring Boot application on AWS cloud using Elastic Beanstalk management console:
- Package Spring Boot app to JAR file
- Create new application
- Configure service access
- Add environment variable
- Deploy the application
- Access newly deployed application
- Check AWS related services
- Terminate environment
- Undeploy the application
Timestamps
0:00 - Table of content
1:06 - Prerequisites
2:38 - Elastic Beanstalk Key Concepts
3:55 - Download and Test Sample Spring Boot App on Localhost
7:21 - Create New Application
11:53 - Configure Service Access
16:06 - Add Environment Variable
17:49 - Deploy the application
22:46 - Edit Environment Configuration
24:36 - Access Newly Deployed Application
25:00 - Check AWS Related Services
28:25 - Terminate Environment
30:55 - Delete the application - Věda a technologie
Thank you sir
Very clear explanation
You're most welcome
Clear explanation of each detail. Thanks from India.
Glad it was helpful! Most welcome.
Your are just awesome 🎉
glad it helped.
You are the GOAT! One thing I had to do was use `mvn` to build the JAR file. This was a crucial step. When I tried to create the JAR using intellij docs it did not work.
Thank you so much!
Glad it helped!
OMG your instructions are very easy to understand !!
Can you make a tutorial on spring websocket with reactjs, including connection security?
Thank you !!
Great suggestion! I will publish such videos in future. Thanks!
hello anh tại sao server port anh lại để 5000 trong khi port default nó đang dùng 8080 anh, với lại default là beanstalk nó dùng s3 để lưu data của nó luôn đúng không ạ, em không thấy config chổ s3 nào nhưng nó vẫn lưu data ở s3
Beanstalk nó lưu deployment artifact trên S3 là mặc định, theo cái AWS region được chọn để deploy đó. Nó chỉ cho phép port 5000 được map ra bên ngoài internet nên phải config port của app là 5000 đó.
A có thể chỉ cách chuyển từ http sang https trên Elastic Bean để fe gọi được api ko ạ?
A sẽ làm video sau. Em thử tìm hiểu cái này xem: docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html
@@CodeJava dạ vâng e cảm ơn ạ
How did you realize that you need to change PORT to SERVER_PORT?
because I remember Spring Boot uses the property name server.port in the application config file.