Hosting Your Resume on AWS EC2 with a CI/CD Setup Using GitHub Actions | AWS Project Demo

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 78

  • @rudradevvlogs9894
    @rudradevvlogs9894 2 місяці тому +2

    Hi there! I just had to drop a message of appreciation. I was completely exhausted from watching countless tutorials trying to grasp CI/CD. Then, I stumbled upon your video, and believe me, my search ended right there! As an absolute beginner, I finally understood everything in one go!
    Thank you so much for making it all so clear. Sending you a big virtual hug for this! 🙌✨

    • @amonkincloud
      @amonkincloud  2 місяці тому +1

      Thanks for the feedback 🙏
      Keep supporting 🙌

  • @alexpyofficial
    @alexpyofficial 7 місяців тому +2

    I was tired of doing the deployment steps again and again every time there is a change in the repository, and finally convinced my ass to learn CI/CD with GitHub actions.
    Your video is quite helpful. Thanks man.

    • @amonkincloud
      @amonkincloud  7 місяців тому +1

      Thanks
      Keep supporting 🙏

  • @drjonbear7517
    @drjonbear7517 8 місяців тому +2

    Absolutely legendary. Thank you so much. Everyone else keeps talking about Fargate. I ain't got the money for that nonsense!

    • @amonkincloud
      @amonkincloud  8 місяців тому

      Thank you so much for your kind words 🙏
      Keep supporting

  • @Waste2Arts
    @Waste2Arts 3 місяці тому +1

    It worked the very first time, thanks 😀

    • @amonkincloud
      @amonkincloud  3 місяці тому

      Glad that it helped 🥳
      Keep supporting 🙏

  • @bhakta_rg
    @bhakta_rg 8 місяців тому +1

    nice one! Liked and subscribed. please post more videos on github actions & Terraform to deploy to AWS...

    • @amonkincloud
      @amonkincloud  8 місяців тому

      Sure. Thank you and keep supporting

  • @chuck.dev007
    @chuck.dev007 Рік тому +2

    Best content. Keep it up.

  • @arifrizveezishan9054
    @arifrizveezishan9054 3 місяці тому +1

    Great video thanks save lote or time❤

    • @amonkincloud
      @amonkincloud  3 місяці тому

      Thank you 🙏
      Keep supporting

  • @prathyushap-r2v
    @prathyushap-r2v 3 місяці тому +1

    Good session but have a question.
    in this you have used "USES"
    uses: easingthemes/ssh-deploy@main
    uses: appleboy/ssh-action@master
    are these a separate repos where the keys are getting called or can we use our own??
    what is the exact use of this variable.??

    • @amonkincloud
      @amonkincloud  3 місяці тому

      Those are like external libraries for the GitHub actions to work. If you have built the same functionality, you are use them.

  • @dhouhaaouididi9692
    @dhouhaaouididi9692 9 місяців тому +1

    Thank you so much, please keep up the good work i learnt a lot :)

    • @amonkincloud
      @amonkincloud  9 місяців тому +1

      Thank you 🙏
      Keep supporting

  • @LightYagami-jm3bd
    @LightYagami-jm3bd 5 місяців тому +1

    Hey guys.. I have a few questions. (i'm new in dev)
    I have created a Angular based frontend project. It's files I've uploaded to github.
    My question is, do i need to create a separate repo for the 'build' files (that are present in the /dist folder), and apply the steps of the video.
    Or is there a way I can just commit changes to the angular project on git, and the build process can also be taken care by git?
    (sry if the question is too naive)

  • @mwanthidaniel1254
    @mwanthidaniel1254 Рік тому +1

    thanks It' work with first attempt🤝

  • @siphondlalane1804
    @siphondlalane1804 10 місяців тому +1

    HI, thanx for the tutorial. I really learnt a lot

    • @amonkincloud
      @amonkincloud  10 місяців тому

      Thanks for your kind words.
      Keep supporting

  • @viralshah2058
    @viralshah2058 Рік тому +3

    Nice Tutorial. But why on every push need to execute steps of
    sudo apt-get -y update
    sudo apt-get install -y apache2
    sudo systemctl start apache2
    sudo systemctl enable apache2
    If apache is already installed on server then can we remove it and optimized it?

    • @amonkincloud
      @amonkincloud  Рік тому

      If it’s installed already then no need of adding them

  • @LifeWithDignity9
    @LifeWithDignity9 10 місяців тому +1

    Hi, thank for the tutorial. One quick question - you didn't show steps to set up the "runs on" part in
    jobs:
    deploy:
    name: Deploy to EC2 on master branch push
    runs-on: ubuntu-latest
    What is ubuntu-latest?
    Mine is indefinitely waiting for runner ...

    • @amonkincloud
      @amonkincloud  10 місяців тому

      It is the container image for GitHub action

  • @villanuevajoshua2143
    @villanuevajoshua2143 Рік тому +1

    is it good practice to target directory in home first? rather than directly in var/www/html folder?

    • @amonkincloud
      @amonkincloud  Рік тому

      Yes. Coz if you place it in /var/www/html will display the content directly display the content

    • @villanuevajoshua2143
      @villanuevajoshua2143 Рік тому

      @@amonkincloud , oh wow so you mean if i place it in home first i don't need to configure not to show the content of the folder but directly as a browser?

  • @amritsrivastava6202
    @amritsrivastava6202 5 місяців тому +1

    IF i have load balancer connected with 2 ec2 instance where should i make change so that code should deploy to both instance

    • @amonkincloud
      @amonkincloud  5 місяців тому

      Then it should be on the autoscaling group

  • @ShivamSingh-hp2id
    @ShivamSingh-hp2id 6 місяців тому +1

    Hello, i've done this setup, but to login from github actions to server, we need to allow ssh connection from anywhere, is there any batter way to handle this? Not allowing ssh from anywhere still login to server from github actions?

    • @amonkincloud
      @amonkincloud  6 місяців тому

      Please check the github actions log. You should be missing something

  • @drjonbear7517
    @drjonbear7517 8 місяців тому

    Quick question: In the YML file, how come you are installing apache2 and enabling/starting the service every time? Once it's been intially deployed it won't need this step will it??

  • @thilakn3046
    @thilakn3046 Рік тому +2

    Hi Monk. How can i resolve this issue?
    ssh: connect to host *** port 22: Connection timed out
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(231) [sender=3.2.7]
    ❌ [Rsync] error:
    Error: rsync exited with code 255
    at ChildProcess. (/***/runner/work/_actions/easingthemes/ssh-deploy/main/dist/index.js:2:2603)
    at ChildProcess.emit (node:events:527:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
    code: 255
    }

    • @amonkincloud
      @amonkincloud  Рік тому

      Check if port 22 is open in the security group

    • @thilakn3046
      @thilakn3046 Рік тому

      @@amonkincloud now i am getting this
      Warning: Permanently added '***' (******) to the list of known hosts.
      ***@***: Permission denied (publickey).
      rsync: connection unexpectedly closed (0 bytes received so far) [sender]
      rsync error: error in rsync protocol data stream (code 12) at io.c(231) [sender=3.2.7]
      ❌ [Rsync] error:
      Error: rsync exited with code 12
      at ChildProcess. (/***/runner/work/_actions/easingthemes/ssh-deploy/main/dist/index.js:2:2603)
      at ChildProcess.emit (node:events:527:28)
      rsync /***/runner/work/Resume/Resume/ ***@***:*** --rsh "ssh -p 22 -i /***/runner/.ssh/deploy_key_***_1688062248962 -o StrictHostKeyChecking=no" --recursive --exclude= -rlgoDzvc -i
      at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
      code: 12

    • @TechElectron-o1j
      @TechElectron-o1j Рік тому +1

      @@amonkincloud sir in my case i check, Security details,
      Port range, all 3 ssh, http, https are checked...sir pls solve my issue

    • @amonkincloud
      @amonkincloud  Рік тому

      @user-my6nw7ke6d cannot just say what is the issue. Need to check completely

    • @aishwaryap.s.v.s7387
      @aishwaryap.s.v.s7387 10 місяців тому

      @@TechElectron-o1j how did u resolve?

  • @jeetashkumar1576
    @jeetashkumar1576 6 місяців тому +1

    I tried to deploy using the same step but I only set the Apache 2 default page i didn't get Resume on my browser??

    • @amonkincloud
      @amonkincloud  6 місяців тому

      Check the GitHub action logs. You should be able to find the error easily

    • @jeetashkumar1576
      @jeetashkumar1576 6 місяців тому

      @@amonkincloud I check action logs twice but didn't get any error

  • @TechElectron-o1j
    @TechElectron-o1j Рік тому +1

    sir 16:29 I got cross mark its say my public IPV4 DNS is not linked but, i ensure its proper link...but still error....I don't no why?. What I'll do?
    error is like this.
    ❌ [INPUTS] remoteHost is mandatory
    Error: R] ⚠ [INPUTS] Inputs not valid, aborting ...

    • @amonkincloud
      @amonkincloud  Рік тому

      I didn’t get you. May be I could help you over a call.

  • @anmolhanchate8767
    @anmolhanchate8767 10 місяців тому +1

    for me public key error is coming while deploying on server checked a lot of times everything was fine...can anyone help ?

  • @aishwaryap.s.v.s7387
    @aishwaryap.s.v.s7387 10 місяців тому +1

    For ubuntu these commands sudo apt-get -y update
    sudo apt-get install -y apache2
    sudo systemctl start apache2
    sudo systemctl enable apache2 but what if i want to try for centos how should i check

    • @amonkincloud
      @amonkincloud  10 місяців тому

      apt will be replaced with yum and you can get the appropriate commands by using google

    • @aishwaryap.s.v.s7387
      @aishwaryap.s.v.s7387 10 місяців тому

      @@amonkincloud hey it worked for me !!! thankyou !!!any document u referred and also can u tell me any document u referred like how to do one after the other in yaml file like in case in future if i want to do it for s3 like please help ..,

  • @prathyushap-r2v
    @prathyushap-r2v 3 місяці тому +1

    you have used
    uses: easingthemes/ssh-deploy@main
    uses: appleboy/ssh-action@master
    are these a different repos which it is cloning from there? any way to change this to use ours?
    need a quick response please.

    • @amonkincloud
      @amonkincloud  3 місяці тому

      Those are like external libraries for the GitHub actions to work. If you have built the same functiinality, you are use them.

  • @GodlyGlances
    @GodlyGlances 8 місяців тому +1

    Hello , Not getting linux as security group in list !! what to do

    • @amonkincloud
      @amonkincloud  8 місяців тому

      Didn’t get you

    • @GodlyGlances
      @GodlyGlances 8 місяців тому

      Thank you ,done - as i have created security group on my own by giving inbound ssh, https and http@@amonkincloud

  • @immainfotech
    @immainfotech Рік тому +1

    Hi,
    In case if i delete a file and push in git, it is not removing from ec2 during deployment. Can you please let me know what is the steps to be followed

    • @amonkincloud
      @amonkincloud  Рік тому

      Please check if you are in the same branch where it is removed

  • @Lafadi_shayar
    @Lafadi_shayar Рік тому +1

    Bro I m using Amazon linux 2023 what we use in runs on ? Please reply

    • @amonkincloud
      @amonkincloud  Рік тому

      Sorry didn’t get you

    • @Lafadi_shayar
      @Lafadi_shayar Рік тому

      @@amonkincloud like you use ubuntu latest what we use for Amazon linux

  • @MaulikPatel-z1u
    @MaulikPatel-z1u 8 місяців тому +1

    found anything about the error?

    • @amonkincloud
      @amonkincloud  8 місяців тому

      What error? Please troubleshoot it. We need to get on a call to check all the configs

  • @vishalupadhyay5963
    @vishalupadhyay5963 6 місяців тому +1

    sir what will be the username if i am using window here....and secret plese reply sir as soon as possible

    • @amonkincloud
      @amonkincloud  6 місяців тому

      Please go to instance page and click in connect you should be able to see the user name. I think it is administrator

  • @RaviSharma-jx9nx
    @RaviSharma-jx9nx 8 місяців тому +1

    Can i put username as root ?

    • @amonkincloud
      @amonkincloud  8 місяців тому

      Not recommended. You can, with few edits

    • @RaviSharma-jx9nx
      @RaviSharma-jx9nx 8 місяців тому

      @@amonkincloud how can you please

  • @SurinderPanwar-g3n
    @SurinderPanwar-g3n Рік тому +1

    this tutorial not working properly.

    • @amonkincloud
      @amonkincloud  Рік тому

      Please check all the steps once. It has worked for many

    • @chitragarivenkatesh5480
      @chitragarivenkatesh5480 Рік тому

      Check this to deploy the static website in the docker container through the AWS cloud.

  • @MaulikPatel-z1u
    @MaulikPatel-z1u 9 місяців тому +1

    ssh: Could not resolve hostname linux_1709424878705: Temporary failure in name resolution
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(231) [sender=3.2.7]
    ❌ [Rsync] error:
    Error: rsync exited with code 255
    at ChildProcess. (/***/runner/work/_actions/easingthemes/ssh-deploy/main/dist/index.js:2:2603)
    at ChildProcess.emit (node:events:514:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
    code: 255
    }
    ❌ [Rsync] stderr:
    Warning: Identity file /***/runner/.ssh/deploy_key_Amazon not accessible: No such file or directory.
    ssh: Could not resolve hostname linux_1709424878705: Temporary failure in name resolution
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(231) [sender=3.2.7]
    ❌ [Rsync] stdout:
    ❌ [Rsync] command:
    ================================================================
    ================================================================
    Error: R] rsync exited with code 255
    Warning: Identity file /***/runner/.ssh/deploy_key_Amazon not accessible: No such file or directory.
    ssh: Could not resolve hostname linux_1709424878705: Temporary failure in name resolution
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(231) [sender=3.2.7]
    rsync /***/runner/work/Host-Resume-on-EC2/Host-Resume-on-EC2/ Amazon\ Linux@***:*** --rsh "ssh -p 22 -i /***/runner/.ssh/deploy_key_***_1709424878705 -o StrictHostKeyChecking=no" --recursive --exclude= -rlgoDzvc -i

  • @MaulikPatel-z1u
    @MaulikPatel-z1u 9 місяців тому +1

    Error: R] rsync exited with code 255
    can anyone help me with this error?

    • @amonkincloud
      @amonkincloud  9 місяців тому

      Please share the complete error message