🚀 Deploy Spring boot application to AWS Cloud 🚀

Поделиться
HTML-код
  • Опубликовано: 27 июл 2024
  • Buy me a coffee: ko-fi.com/boualiali 🔥 Secure your spot now and embark on your journey to becoming a Spring Boot master!🔥
    aliboucoding.com/p/spring-boo...
    🎁 🚀 COUPON Code: EARLY_BIRD_30
    🚀 Welcome to an exhilarating tech journey! In this comprehensive tutorial, we'll guide you through deploying your Spring Boot application on AWS EC2, unlocking the power to reach users worldwide, 24/7. Get ready to supercharge your developer skills and elevate your app's accessibility! 💻🌟
    🔥 In this video, you'll discover:
    - ✅ Setting up AWS EC2 effortlessly
    - ✅ Painlessly deploying Spring Boot
    - ✅ Ensuring your app's 24/7 availability with AWS magic
    Source code: github.com/ali-bouali/aws-dep...
    🎟 Join this channel to get access to perks: / @boualiali
    Recommended Courses:
    🎬 Spring Boot security & JWT token: • Spring boot 3.0 - Secu...
    🎬 Spring security - Roles and permissions: • Spring boot 3 & Spring...
    🎬 Spring Boot - Microservices architecture: • Microservices tutorial...
    🎬 DevOps - Github Actions CI/CD: • GitHub Actions CI/CD p...
    🎬 Spring Security - KeyCloak integration: • Spring boot 3 Keycloak...
    🎬 DevOps - Docker for Beginners: • Docker tutorial for be...
    🎬 DevOps - AWS EC2 deployment: • 🚀 Deploy Spring boot a...
    🎬 Angular - Full course from scratch: • Angular Tutorial For B...
    🎬 Websocket - Chat application one to one: • WebSocket Tutorial wit...
    🎬 Spring Security - Two Factors Authentication 2FA (TFA): • Two Factor Authenticat...
    🎬 Spring Boot - Swagger UI & OpenApi Decomentation : • Spring boot 3 - OpenAp...
    🎬 Spring Boot - Reactive programming & WebFlux: • Reactive Programming w...
    🎬 Spring Data JPA & Hibernate: • Spring Data JPA - The ...
    🎬 Apache Kafka: • Apache Kafka Tutorial ...
    CONNECT WITH ME:
    👨‍💻. Website: aliboucoding.com
    👨‍🏫 Facebook: / 589612651142975
    📸 Instagram: / alibou_coding
    🎮 GitHub: github.com/ali-bouali
    🏘️ Discord: / discord
    Table of content:
    00:00 Intro
    02:43 Infrastructure architecture overview
    08:05 Create a new AWS account
    08:51 Create Security Group and Key Pair
    15:56 Create a new EC2 Instance
    18:33 Connect to the EC2 instance via ssh
    21:07 Prepare and build the the Spring boot application
    27:04 Deploy the application the EC2 instance
    30:10 Outro and what comes next

Комментарии • 113

  • @BoualiAli
    @BoualiAli  10 месяцев назад +3

    Join the Spring boot full course course waiting list and get and get an exclusive EARLY-BIRD discount
    aliboucoding.ck.page/d0f9317e13

  • @digitalliteracykh
    @digitalliteracykh 10 месяцев назад

    Thank you for the good quality video. Can't wait for the next video.

  • @frvi3502
    @frvi3502 10 месяцев назад +2

    You make so much quality content. Thanks a lot.

  • @firas_hkimi
    @firas_hkimi 10 месяцев назад

    Another excellent video! Thanks Sir 👌

  • @mossabseifelislemdehane2849
    @mossabseifelislemdehane2849 10 месяцев назад +2

    Love u buudy , Perfect timing

  • @thansurya
    @thansurya Месяц назад +1

    Excellent video. Appreciate your effort. Please don't stop your teaching. love from india

  • @user-qd5pv7rs7q
    @user-qd5pv7rs7q 10 месяцев назад +4

    The video has been really educational. Looking forward to the next one with databases

    • @BoualiAli
      @BoualiAli  10 месяцев назад +1

      Soon!

    • @lisiscof
      @lisiscof 2 месяца назад

      @@BoualiAli Hi! thanks for this video. I Would need to add the database part since the run fails due to that. Do you have that video?

  • @ark3286
    @ark3286 10 месяцев назад +1

    Thanks Ali, for sharing this; it was really great. I'm waiting for the following AWS and Terraform videos.🤓

    • @BoualiAli
      @BoualiAli  10 месяцев назад +1

      Coming soon!

    • @namthang1969
      @namthang1969 2 месяца назад

      hi@@BoualiAli , do we have the Terraform video?

  • @user-qd5pv7rs7q
    @user-qd5pv7rs7q 10 месяцев назад +1

    The video has been really helpfuf. Looking forward to the next video which will cover deploying an application with a database

  • @rahmantebar2840
    @rahmantebar2840 10 месяцев назад

    This was very helpful. Thank you very much Sir.

  • @sardorbekyorqulov
    @sardorbekyorqulov 5 месяцев назад

    Thank you for sharing valuable content on RUclips.

  • @hanslandagi8417
    @hanslandagi8417 10 месяцев назад +1

    Thank u for this video and ur no conditional effort from Morocco

    • @BoualiAli
      @BoualiAli  10 месяцев назад +2

      My pleasure!
      All my Support for my Morrocain brothers and sisters

  • @denisonkolling
    @denisonkolling 6 месяцев назад

    Excellent video!! It's my next step in studying coding, and now starting to learn cloud services... Thanks for share!

    • @BoualiAli
      @BoualiAli  3 месяца назад

      Glad you liked it!

  • @jnayehsirine6222
    @jnayehsirine6222 10 месяцев назад

    what a great Content , thank you for this contribution !!

    • @BoualiAli
      @BoualiAli  9 месяцев назад

      Glad you enjoyed it!

  • @xk7zn
    @xk7zn 8 месяцев назад

    Salam Ali, hope you doing well, great content as always ! waiting for the Terrafrom videos !

    • @BoualiAli
      @BoualiAli  8 месяцев назад

      Happy you liked it!

  • @j.mohamed
    @j.mohamed 10 месяцев назад

    Thanks Ali , Yes i like idea with Terraform i think it used a lot with
    aws currently in the market

  • @arsenedamlabin8053
    @arsenedamlabin8053 10 месяцев назад

    I enjoyed it

  • @waleagboola5943
    @waleagboola5943 10 месяцев назад

    Great video. Thanks for sharing

    • @BoualiAli
      @BoualiAli  10 месяцев назад +1

      Thanks for watching!

  • @otc_lee
    @otc_lee 4 месяца назад

    Thank you so much for this. Eagerly waiting for the video on deploying database app that uses docker container for the db service and coker compose to start the services

    • @BoualiAli
      @BoualiAli  3 месяца назад

      As soon as possible

  • @dustin146
    @dustin146 8 месяцев назад

    Excellent tutorial! I am definitely interested in a followup showing how to deploy with Terrform!

    • @BoualiAli
      @BoualiAli  8 месяцев назад

      Happy you liked it!

  • @noorahameds8
    @noorahameds8 7 месяцев назад

    Amazing video ,Can you please also explain how to use docker, kubernates (eks) and aws lb so that our spring boot project is deployed on cloud

  • @brandonaso
    @brandonaso 9 месяцев назад +1

    Loved the video. Very imformative. when are you dropping the AWS video setting up RDS?

    • @BoualiAli
      @BoualiAli  8 месяцев назад

      Happy you liked it!

  • @jean-claudembeng6720
    @jean-claudembeng6720 9 месяцев назад

    You are really a magic man thank you @BoualiAli!

    • @BoualiAli
      @BoualiAli  8 месяцев назад

      Happy you liked it!

  • @mouradeljayi584
    @mouradeljayi584 10 месяцев назад

    Great Tutorial

    • @BoualiAli
      @BoualiAli  10 месяцев назад

      Glad you think so!

  • @anjanx44
    @anjanx44 10 месяцев назад +1

    Such a paid content for free.
    Thanks man❤

  • @baibula
    @baibula 6 месяцев назад

    Thank you!

    • @BoualiAli
      @BoualiAli  3 месяца назад +1

      Glad you liked it!

  • @3xperttt
    @3xperttt 10 месяцев назад

    Thank you

  • @abdulfatorma348
    @abdulfatorma348 10 месяцев назад

    Thank you sir for the wonderful tutorial you made today, I am excited about it sir. I am from Sierra Leone Western Africa.
    Please, sir, make a tutorial on how to create a portfolio to show the employer.
    Thank you, God bless you, sir.

    • @BoualiAli
      @BoualiAli  9 месяцев назад

      Happy you liked it!

  • @ulascanthedev
    @ulascanthedev 10 месяцев назад +1

    Thanks for this amazing tutorial sir. I have a question: I have couple microservices and I want to make them work on AWS. Should I run these services in just 1 EC2 instance or should I run different EC2 instances for each spring boot service?

    • @BoualiAli
      @BoualiAli  9 месяцев назад +1

      It really depends.
      Using 2 EC2 will increase the cost (but recommended)
      Using same EC2 will be less costly (not really recommended)

  • @hamzakasmi9240
    @hamzakasmi9240 10 месяцев назад

    thank you

    • @BoualiAli
      @BoualiAli  10 месяцев назад

      You're welcome

  • @thirumoorthyn7546
    @thirumoorthyn7546 2 месяца назад

    Hi Ali, I see you created the Docker image and it is docker repo. In EC2 instance you installed the Docker and started the service. Then you run the command to start the docker image. I dont understand how EC2 instance able to get the image from Docker? you havent logged in to docker service from EC2.

  • @Iceytroll
    @Iceytroll 4 месяца назад

    Thanks a lot, please make a video to deploy a whole app (backend + frontend + database).

    • @BoualiAli
      @BoualiAli  3 месяца назад

      already done. check the latest video

  • @danujansivasundaralingam5772
    @danujansivasundaralingam5772 6 месяцев назад

    Please upload the database connected one!

  • @xxyz9819
    @xxyz9819 10 месяцев назад

    Hey Great Tutorial!!. Can you make one using ecr and ecs using the ec2 instance launch type. I can't seem to get the ecs cluster part to work.

  • @ashilshanavas4943
    @ashilshanavas4943 6 месяцев назад +2

    Hi Sir. I couldn't find your video which shows how to deploy spring boot applications that uses databases

    • @BoualiAli
      @BoualiAli  3 месяца назад

      check the latest video

  • @user-me1ry6lg6d
    @user-me1ry6lg6d 6 месяцев назад

    what about https requests , because that is what we will be using in production ?

  • @iyiempire4667
    @iyiempire4667 5 месяцев назад +1

    your video was really good but I feel difficulty as i dont have knowledge in springboot and docker even i dont know what they are I just know about aws. please share some links of videos that can be easily for me to understand this video. looking forward for your response. Thank you

    • @BoualiAli
      @BoualiAli  5 месяцев назад

      In my channel you can find spring boot video as well as docker tutorials.
      Enjoy the learning

  • @QuanTran-ej3jh
    @QuanTran-ej3jh Месяц назад

    1 problem is that: when we close the connect session of the EC2, the Docker Container will also be stopped. So this means that we can only access the deployed app while the connect session of the EC2 is still open. Any idea how to solve this?

  • @devmail4648
    @devmail4648 10 месяцев назад +1

    Ali, great effort. GOD or ALLAH blessyou...We're waiting for the AWS with Terraform and Backend

  • @caffeinejavacode1475
    @caffeinejavacode1475 3 месяца назад

    I changaed ports cause 80 was used and add inbound rules Custop TCP 8081 port

  • @estevenantoniocalcinapuma7695
    @estevenantoniocalcinapuma7695 9 дней назад

    Muy bueno

  • @ismailforeveryone6889
    @ismailforeveryone6889 8 месяцев назад

    Interesting

    • @BoualiAli
      @BoualiAli  8 месяцев назад +1

      Happy you liked it!

  • @prasanthan.v8854
    @prasanthan.v8854 3 месяца назад

    what would be the docker build command if i'm running the ubuntu ec2 instance

    • @BoualiAli
      @BoualiAli  3 месяца назад

      you need to add the build platform argument

  • @zongruiliu8076
    @zongruiliu8076 6 месяцев назад

    Hi sir, When I run docker build build --platform linux/arm64 -t / ., it gives an error: ERROR: failed to solve: openjdk:17-alpine: no match for platform in manifest sha256:4b6abae5654. How to solve it, thanks!

  • @estevenantoniocalcinapuma7695
    @estevenantoniocalcinapuma7695 8 дней назад

    where is the next video?

  • @user-qh2uc1bu1o
    @user-qh2uc1bu1o 10 месяцев назад

    Thanks for guide. But let me know, how to deploy an application with Microservices?

    • @BoualiAli
      @BoualiAli  9 месяцев назад

      You can follow the same pattern (not really recommended)
      I will try to cover it in the future

  • @vietphamquang6202
    @vietphamquang6202 10 месяцев назад

    hey nice works, btw do we need payment for edu account?

  • @mr.codewalker
    @mr.codewalker 15 дней назад

    I have watched video for 1 hours. But when my program has been deployed successful, it doesn't works

  • @user-wz7gg3co3p
    @user-wz7gg3co3p 10 месяцев назад

    YOU ARE THE BEST!!!

  • @saneershaikh6660
    @saneershaikh6660 10 месяцев назад

  • @user-wh3nl9kd7h
    @user-wh3nl9kd7h 10 месяцев назад

    Excellent video, j'aurais aimé le refaire mais malheuresement je me suis bloqué dans l'etape de creation de compte AWS puisque ca necessite une carte bancaire et je suis encore etudiante .

    • @hazembenbz
      @hazembenbz 10 месяцев назад

      les cartes cti ne necessitent pas un compte bancaire

  • @n_indian_girl5966
    @n_indian_girl5966 8 месяцев назад

    while running to build project getting error with /bin/sh -c mvn clean install from docker.I dont understand why but when i use /bin/sh -c "mvn clean install" from my terminal it build sucessfully . beacuse of this error i cant build my image to docker. can anyone help me

    • @BoualiAli
      @BoualiAli  8 месяцев назад

      Check the maven version you're using in the docker file

  • @user-ri3zu9wh2o
    @user-ri3zu9wh2o 10 месяцев назад

    bro it is giving connection timeout ) when I am trying to connect to instance in terminal in windows 11
    )

    • @BoualiAli
      @BoualiAli  9 месяцев назад

      Check the Ingress rules.
      Did you allow your IP@

  • @ahmidaitouali1131
    @ahmidaitouali1131 10 месяцев назад

    Merci pour cette vidéo. Est -il prévu de les faire en français ?

    • @BoualiAli
      @BoualiAli  10 месяцев назад +1

      Mes videos sont desormais en Anglais.
      Je vais essayer d'ajouter des sous titres quand c'est possible

  • @geybriyel2416
    @geybriyel2416 3 месяца назад

    hi ali, what if the application is connected to a database? how do we deploy that?

    • @BoualiAli
      @BoualiAli  3 месяца назад +1

      You can create and RDS instance and connect it to your application and EC2 instance

    • @geybriyel2416
      @geybriyel2416 3 месяца назад

      @@BoualiAli Thank you, I managed to deploy everything successfully. However, when I close the ssh terminal, the application stops. what do you recommend that I do to solve this?

    • @geybriyel2416
      @geybriyel2416 3 месяца назад

      I watched your docker tutorial and I was able to containerize my api. Now it works even after exiting the ssh connection :D your videos are so helpful! My next goal is to create a pipeline. I'm already halfway through your ci/cd video. Thank u Ali for your free tutorials!

    • @BoualiAli
      @BoualiAli  3 месяца назад

      @@geybriyel2416 glad you're making a good progress. Keep it up

  • @djoleezcool
    @djoleezcool 10 месяцев назад

    What if our project use database?

  • @jean-claudembeng6720
    @jean-claudembeng6720 9 месяцев назад

    Since I tried to follow the video tutorial i'm facing this issue when trying to use the dcoker command to create the image : ERROR: failed to solve: maven:3.8.4-openjdk-17: no match for platform in manifest

    • @BoualiAli
      @BoualiAli  8 месяцев назад

      which OS do you use?

  • @congdatt
    @congdatt 10 месяцев назад

    CI CD plz bro

  • @FranckTCHIENGUEN-mg4ff
    @FranckTCHIENGUEN-mg4ff 9 месяцев назад

    Video is very nice but don't respond to a very complet app deployment with database API and angular front-end I was disappointed with the overall content of the video because I was expecting more

  • @user-sn2ob8is2n
    @user-sn2ob8is2n 10 месяцев назад

    thank you

    • @BoualiAli
      @BoualiAli  10 месяцев назад

      You're welcome