🚀 Deploy Spring boot application to AWS Cloud 🚀

Sdílet
Vložit
  • čas přidán 26. 07. 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

Komentáře • 113

  • @BoualiAli
    @BoualiAli  Před 10 měsíci +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 Před 10 měsíci

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

  • @thansurya
    @thansurya Před měsícem +1

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

  • @firas_hkimi
    @firas_hkimi Před 10 měsíci

    Another excellent video! Thanks Sir 👌

  • @frvi3502
    @frvi3502 Před 10 měsíci +2

    You make so much quality content. Thanks a lot.

  • @user-qd5pv7rs7q
    @user-qd5pv7rs7q Před 10 měsíci +4

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

    • @BoualiAli
      @BoualiAli  Před 10 měsíci +1

      Soon!

    • @lisiscof
      @lisiscof Před 2 měsíci

      @@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?

  • @mossabseifelislemdehane2849
    @mossabseifelislemdehane2849 Před 10 měsíci +2

    Love u buudy , Perfect timing

  • @user-qd5pv7rs7q
    @user-qd5pv7rs7q Před 10 měsíci +1

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

  • @ark3286
    @ark3286 Před 10 měsíci +1

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

    • @BoualiAli
      @BoualiAli  Před 10 měsíci +1

      Coming soon!

    • @namthang1969
      @namthang1969 Před 2 měsíci

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

  • @sardorbekyorqulov
    @sardorbekyorqulov Před 5 měsíci

    Thank you for sharing valuable content on CZcams.

  • @rahmantebar2840
    @rahmantebar2840 Před 10 měsíci

    This was very helpful. Thank you very much Sir.

  • @denisonkolling
    @denisonkolling Před 6 měsíci

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

  • @hanslandagi8417
    @hanslandagi8417 Před 10 měsíci +1

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

    • @BoualiAli
      @BoualiAli  Před 10 měsíci +2

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

  • @xk7zn
    @xk7zn Před 8 měsíci

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

  • @jnayehsirine6222
    @jnayehsirine6222 Před 9 měsíci

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

  • @waleagboola5943
    @waleagboola5943 Před 10 měsíci

    Great video. Thanks for sharing

  • @j.mohamed
    @j.mohamed Před 10 měsíci

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

  • @arsenedamlabin8053
    @arsenedamlabin8053 Před 10 měsíci

    I enjoyed it

  • @otc_lee
    @otc_lee Před 4 měsíci

    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

  • @brandonaso
    @brandonaso Před 9 měsíci +1

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

  • @mouradeljayi584
    @mouradeljayi584 Před 10 měsíci

    Great Tutorial

  • @dustin146
    @dustin146 Před 8 měsíci

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

  • @jean-claudembeng6720
    @jean-claudembeng6720 Před 9 měsíci

    You are really a magic man thank you @BoualiAli!

  • @anjanx44
    @anjanx44 Před 10 měsíci +1

    Such a paid content for free.
    Thanks man❤

  • @baibula
    @baibula Před 6 měsíci

    Thank you!

  • @3xperttt
    @3xperttt Před 10 měsíci

    Thank you

  • @hamzakasmi9240
    @hamzakasmi9240 Před 10 měsíci

    thank you

  • @abdulfatorma348
    @abdulfatorma348 Před 10 měsíci

    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.

  • @noorahameds8
    @noorahameds8 Před 7 měsíci

    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

  • @Iceytroll
    @Iceytroll Před 4 měsíci

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

    • @BoualiAli
      @BoualiAli  Před 3 měsíci

      already done. check the latest video

  • @devmail4648
    @devmail4648 Před 10 měsíci +1

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

  • @estevenantoniocalcinapuma7695

    Muy bueno

  • @thirumoorthyn7546
    @thirumoorthyn7546 Před 2 měsíci

    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.

  • @ismailforeveryone6889
    @ismailforeveryone6889 Před 8 měsíci

    Interesting

  • @ulascanthedev
    @ulascanthedev Před 10 měsíci +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  Před 9 měsíci +1

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

  • @danujansivasundaralingam5772

    Please upload the database connected one!

  • @ashilshanavas4943
    @ashilshanavas4943 Před 6 měsíci +2

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

  • @QuanTran-ej3jh
    @QuanTran-ej3jh Před měsícem

    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?

  • @xxyz9819
    @xxyz9819 Před 10 měsíci

    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.

  • @saneershaikh6660
    @saneershaikh6660 Před 10 měsíci

  • @iyiempire4667
    @iyiempire4667 Před 5 měsíci +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  Před 5 měsíci

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

  • @caffeinejavacode1475
    @caffeinejavacode1475 Před 3 měsíci

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

  • @user-me1ry6lg6d
    @user-me1ry6lg6d Před 6 měsíci

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

  • @zongruiliu8076
    @zongruiliu8076 Před 6 měsíci

    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!

  • @prasanthan.v8854
    @prasanthan.v8854 Před 3 měsíci

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

    • @BoualiAli
      @BoualiAli  Před 3 měsíci

      you need to add the build platform argument

  • @vietphamquang6202
    @vietphamquang6202 Před 10 měsíci

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

  • @estevenantoniocalcinapuma7695

    where is the next video?

  • @mr.codewalker
    @mr.codewalker Před 14 dny

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

  • @user-wz7gg3co3p
    @user-wz7gg3co3p Před 10 měsíci

    YOU ARE THE BEST!!!

  • @n_indian_girl5966
    @n_indian_girl5966 Před 8 měsíci

    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  Před 8 měsíci

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

  • @user-qh2uc1bu1o
    @user-qh2uc1bu1o Před 10 měsíci

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

    • @BoualiAli
      @BoualiAli  Před 9 měsíci

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

  • @user-ri3zu9wh2o
    @user-ri3zu9wh2o Před 10 měsíci

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

    • @BoualiAli
      @BoualiAli  Před 9 měsíci

      Check the Ingress rules.
      Did you allow your IP@

  • @user-wh3nl9kd7h
    @user-wh3nl9kd7h Před 10 měsíci

    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 Před 10 měsíci

      les cartes cti ne necessitent pas un compte bancaire

  • @ahmidaitouali1131
    @ahmidaitouali1131 Před 10 měsíci

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

    • @BoualiAli
      @BoualiAli  Před 10 měsíci +1

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

  • @geybriyel2416
    @geybriyel2416 Před 3 měsíci

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

    • @BoualiAli
      @BoualiAli  Před 3 měsíci +1

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

    • @geybriyel2416
      @geybriyel2416 Před 3 měsíci

      @@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 Před 3 měsíci

      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  Před 2 měsíci

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

  • @djoleezcool
    @djoleezcool Před 10 měsíci

    What if our project use database?

  • @congdatt
    @congdatt Před 10 měsíci

    CI CD plz bro

  • @jean-claudembeng6720
    @jean-claudembeng6720 Před 9 měsíci

    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

  • @FranckTCHIENGUEN-mg4ff
    @FranckTCHIENGUEN-mg4ff Před 9 měsíci

    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 Před 10 měsíci

    thank you