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

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 มิ.ย. 2023
  • Hosting Your Resume on AWS EC2 with a CI/CD Setup Using GitHub Actions | AWS Project Demo
    Follow our tutorials here: www.youtube.com/@amonkincloud...
    Follow our GitHub here: github.com/yeshwanthlm
    Follow our blog here: amonkincloud.com/
    Follow my personal blog here:dev.to/yeshwanthlm/
    Follow us on Instagram: / amonkincloud
    GitHub Repo Link: github.com/yeshwanthlm/Host-R...
    Blog Link: dev.to/yeshwanthlm/deploy-res...
    🔖-------------------------Tags----------------------
    #LinuxCertified #CloudEngineer #FreeCertification #2023
    #GoogleCloudCertified #GetCertifiedProgram2023 #aws #cloudcomputing #AWSCommunity #AWSUserGroup #AWSMeetup #AWSMVP #AWSCommunity #AWSUserGroup #AWSMeetup #AWSMVP #AWSreInvent #AWScloud #AWScertification #AWSarchitecture #AWSdevops #AWSsecurity #AWSLambda #AWSGlue #AWSBatch #AWSStepFunctions #AWSS3 #AWSIoT #AWSAppSync #AWSMachineLearning #AWSDatabase #AWSServerless #AWSCloudFormation #AWSCloudTrail #AWSCloudWatch #AWSSQS #AWSSNS #AWSCodePipeline #AWSCodeCommit #AWSCodeBuild #AWSCodeDeploy #AWSCodeStar #AWSOpsWorks #AWSElasticBeanstalk #AWSFargate #AWSKubernetes #AWSContainers #AWSLambdaLayers #AWSXRay #AWSSES #AWSRoute53 #AWSDirectConnect #AWSVPN #AWSStorageGateway #AWSBackup #AWSOutposts #AWSWavelength #AWSComputeOptimizer #AWSChatbot #AWSLaunchWizard #AWSManagedServices #AWSControlTower #AWSIoTGreengrass #AWSEMR #AWSSagemaker #AWSDeepRacer #AWSRoboMaker #AWSPolly #AWSLex #AWSTranslate #AWSRekognition #AWSComprehend #AWSForecast #AWSQuickSight #AWSDataPipeline #AWSGlacier #AWSSnowball #AWSStorageClasses #AWSBackupRecovery #AWSCommunity #AWSCommunityBuilders #AWS #LearnAWSforFree #Free #FreeResources #Top5 #2022 #LearnAzure #AWSCommunityBuilderProgram #Community #TH-cam #MySql #Server #AWS #EC2 #Instance #EC2_Instance #Demo #MySqlServer #Commands #Queries #LearnAWS #AWSCommunityBuilder #AWSCertified #Backup #Snapshot,#AWS,#LearnAWSforFree,#Free,#FreeResources,#2022,#AWSCommunityBuilderProgram,#Community,#Server,#EC2,#Instance,#EC2_Instance,#Demo,#Commands,
    #LearnAWS,#AWSCommunityBuilder,#AWSCertified,#Automation,#SnapshotCreation,#AWSEC2Instance,#CompleteTutorial,#LiveDemo,#ProjectBasedLearning,
    #ClearAWSInterview,#InterviewPreparation,#OnlineLearning,#SelfThoughtLearner,#Opportunity,#DevOps,#ITCareer,#DevOpsRoles,#Jobs,#India,#AWSDevops,
    #Happy,#AWSAccount,#TrainingOnAWS,#CloudComputing,#Tutorial,#AWSDemo,#AWSDevOpsProject,#SubnettingMadeEasy,#UnderstandingSubnetting,#VPC,#VNet#30DaysOfTerraform,#TerraformAWSTutorials,#TerraformFullCourse,#TerraformMadeEasy,#LearnTerraform,#FreeTerraformCourse,#TerraformCourse,#30DaysOfTerraform,#TerraformAWSTutorials,#TerraformFullCourse,#TerraformMadeEasy,#LearnTerraform,#FreeTerraformCourse,#TerraformCourse #AWS,#LearnAWSforFree,#Free,#FreeResources,#Top5,#2022,#AWSCommunityBuilderProgram,#Community,#TH-cam,#Opensource,#IAC,#Terraform,#DevOps,#CareerInDevOps,
    #TrainingOnAWS,#CloudComputing,#Tutorial,#AWSDemo,#AWSDevOpsProject,#DevOpsMadeEasy,#LearnDevOps,#AWSDevOps,#AzureDevOps,#DevOpsRoadMap,#DevOpsForBeginners #Enjoy,#CloudComputing,#Tutorial,#AWSCommunityBuilderProgram,#Community
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 63

  • @alexpyofficial
    @alexpyofficial หลายเดือนก่อน +1

    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  หลายเดือนก่อน +1

      Thanks
      Keep supporting 🙏

  • @drjonbear7517
    @drjonbear7517 2 หลายเดือนก่อน +1

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

    • @amonkincloud
      @amonkincloud  2 หลายเดือนก่อน

      Thank you so much for your kind words 🙏
      Keep supporting

  • @dhouhaaouididi9692
    @dhouhaaouididi9692 3 หลายเดือนก่อน +1

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

    • @amonkincloud
      @amonkincloud  3 หลายเดือนก่อน +1

      Thank you 🙏
      Keep supporting

  • @ibmuser13
    @ibmuser13 2 หลายเดือนก่อน +1

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

    • @amonkincloud
      @amonkincloud  2 หลายเดือนก่อน

      Sure. Thank you and keep supporting

  • @siphondlalane1804
    @siphondlalane1804 4 หลายเดือนก่อน +1

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

    • @amonkincloud
      @amonkincloud  4 หลายเดือนก่อน

      Thanks for your kind words.
      Keep supporting

  • @chuck.dev007
    @chuck.dev007 6 หลายเดือนก่อน +2

    Best content. Keep it up.

    • @amonkincloud
      @amonkincloud  6 หลายเดือนก่อน

      Thank you 🙏

  • @ShivamSingh-hp2id
    @ShivamSingh-hp2id วันที่ผ่านมา

    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?

  • @mwanthidaniel1254
    @mwanthidaniel1254 10 หลายเดือนก่อน +1

    thanks It' work with first attempt🤝

    • @amonkincloud
      @amonkincloud  10 หลายเดือนก่อน

      Glad that it helped you.

  • @viralshah2058
    @viralshah2058 7 หลายเดือนก่อน +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  7 หลายเดือนก่อน

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

  • @immainfotech
    @immainfotech 9 หลายเดือนก่อน +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  9 หลายเดือนก่อน

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

  • @jeetashkumar1576
    @jeetashkumar1576 5 วันที่ผ่านมา +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  5 วันที่ผ่านมา

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

    • @jeetashkumar1576
      @jeetashkumar1576 5 วันที่ผ่านมา

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

  • @LifeWithDignity9
    @LifeWithDignity9 4 หลายเดือนก่อน +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  4 หลายเดือนก่อน

      It is the container image for GitHub action

  • @drjonbear7517
    @drjonbear7517 2 หลายเดือนก่อน

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

    • @amonkincloud
      @amonkincloud  2 หลายเดือนก่อน

      It is required

  • @villanuevajoshua2143
    @villanuevajoshua2143 6 หลายเดือนก่อน +1

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

    • @amonkincloud
      @amonkincloud  6 หลายเดือนก่อน

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

    • @villanuevajoshua2143
      @villanuevajoshua2143 6 หลายเดือนก่อน

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

  • @user-my6nw7ke6d
    @user-my6nw7ke6d 8 หลายเดือนก่อน +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  8 หลายเดือนก่อน

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

  • @GodlyGlances
    @GodlyGlances 2 หลายเดือนก่อน +1

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

    • @amonkincloud
      @amonkincloud  2 หลายเดือนก่อน

      Didn’t get you

    • @GodlyGlances
      @GodlyGlances 2 หลายเดือนก่อน

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

  • @user-pn7lg3ki7d
    @user-pn7lg3ki7d 2 หลายเดือนก่อน +1

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

    • @amonkincloud
      @amonkincloud  2 หลายเดือนก่อน

      Please share the complete error message

  • @thilakn3046
    @thilakn3046 11 หลายเดือนก่อน +1

    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  11 หลายเดือนก่อน

      Check if port 22 is open in the security group

    • @thilakn3046
      @thilakn3046 11 หลายเดือนก่อน

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

    • @user-my6nw7ke6d
      @user-my6nw7ke6d 8 หลายเดือนก่อน +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  8 หลายเดือนก่อน

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

    • @aishwaryap.s.v.s7387
      @aishwaryap.s.v.s7387 3 หลายเดือนก่อน

      @@user-my6nw7ke6d how did u resolve?

  • @Lafadi_shayar
    @Lafadi_shayar 9 หลายเดือนก่อน +1

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

    • @amonkincloud
      @amonkincloud  9 หลายเดือนก่อน

      Sorry didn’t get you

    • @Lafadi_shayar
      @Lafadi_shayar 9 หลายเดือนก่อน

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

  • @vishalupadhyay5963
    @vishalupadhyay5963 14 วันที่ผ่านมา +1

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

    • @amonkincloud
      @amonkincloud  14 วันที่ผ่านมา

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

  • @aishwaryap.s.v.s7387
    @aishwaryap.s.v.s7387 4 หลายเดือนก่อน +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  4 หลายเดือนก่อน

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

    • @aishwaryap.s.v.s7387
      @aishwaryap.s.v.s7387 4 หลายเดือนก่อน

      @@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 ..,

  • @anmolhanchate8767
    @anmolhanchate8767 4 หลายเดือนก่อน +1

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

    • @amonkincloud
      @amonkincloud  4 หลายเดือนก่อน

      Need to check in detail

  • @user-pn7lg3ki7d
    @user-pn7lg3ki7d 2 หลายเดือนก่อน +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

  • @user-pn7lg3ki7d
    @user-pn7lg3ki7d 2 หลายเดือนก่อน +1

    found anything about the error?

    • @amonkincloud
      @amonkincloud  2 หลายเดือนก่อน

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

  • @RaviSharma-jx9nx
    @RaviSharma-jx9nx 2 หลายเดือนก่อน +1

    Can i put username as root ?

    • @amonkincloud
      @amonkincloud  2 หลายเดือนก่อน

      Not recommended. You can, with few edits

    • @RaviSharma-jx9nx
      @RaviSharma-jx9nx 2 หลายเดือนก่อน

      @@amonkincloud how can you please

  • @user-jf4ij6hh4e
    @user-jf4ij6hh4e 8 หลายเดือนก่อน +1

    this tutorial not working properly.

    • @amonkincloud
      @amonkincloud  8 หลายเดือนก่อน

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

    • @chitragarivenkatesh5480
      @chitragarivenkatesh5480 5 หลายเดือนก่อน

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