Build CI CD Pipeline with AWS CodeDeploy and AWS CodePipeline to deploy Node.js app | Step By Step

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 2024

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

  • @ScaleUpSaaS
    @ScaleUpSaaS  ปีที่แล้ว +1

    If you have questions about Build CI CD Pipeline with AWS CodeDeploy and AWS CodePipeline -> Feel Free to Book a Free Consultation Call calendly.com/scale-up-saas/free

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

    this is the 1 of the best cloud trainers that I've come across in a while, i highly recommend this guy

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

      Thanks for sharing! We are really appreciate it 🥰
      By the way, if you want to acquire more cloud knowledge and get more cloud training ... We are launching our "AWS Master Course for Beginners" Very soon! and you have the option to get now pre-launch discount price!
      check it here:
      scaleupsaas.dev/aws-master-course-for-beginners/

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

    Thanks for this tutorial. The issue I have is how do I add environment variables that I have in my .env to work when I deployed my app.

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

      Thanks for sharing.
      You have many options to work with environment variables. You can add it locally to the server with .env file or you can work with AWS secret manager or system manager parameters store. Let me know if you need more help with that. We will do another tutorial…

    • @surbhimidha-vz7dk
      @surbhimidha-vz7dk 5 หลายเดือนก่อน +1

      Thanks, do we have a tutorial on this?

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

      @@surbhimidha-vz7dk yes. Soon.
      You can also enroll to our AWS Master course. Where we sure so much more.
      You can find details here: scaleupsaas.dev

  • @lawais1977
    @lawais1977 ปีที่แล้ว +1

    great video! I'm having an issue though... the pm2 process is created by the ec2-user but when the script runs try to update with root, so its a different "pm2 instance" and doesnt really update the ec2-user process...

    • @ScaleUpSaaS
      @ScaleUpSaaS  ปีที่แล้ว

      Thanks for sharing. You probably miss the steps where I’m saying that all Linux services need to be available to the ROOT user. Just read the GitHub readme instructions file again and you will know what to do. Keep me posted.
      Please subscribe for more amazing content 😎

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

      @@ScaleUpSaaSI think I followed everything, but nvm, I already solved it replacing the script line with this: "sudo -u ec2-user bash -c 'pm2 restart c-server' >> /home/ec2-user/app/deploy.log" and that did the trick. Anyways, your video was AWESOME and did 98% of the job, so THANKS THANKS THANKS

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

      @@ScaleUpSaaS (I bought you 3 coffees... you deserved them, enjoy! and thank you agan!)

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

      Thanks for the support 🙏🙏🙏
      We really appreciate it ❤️
      Will keep releasing more amazing tutorials.
      Any tutorials requests you want us to do?

  • @vijaya4025
    @vijaya4025 2 ปีที่แล้ว +1

    Great.need more cicd realtime projects. thank you

    • @ScaleUpSaaS
      @ScaleUpSaaS  2 ปีที่แล้ว +1

      Happy to hear that 😀. Going to release CI CD Pipeline with GitHub actions in the next few days …. So keep follow 👍

  • @tarnum13
    @tarnum13 2 ปีที่แล้ว +2

    Exactly what I was searching for! Thanks 🙏

    • @ScaleUpSaaS
      @ScaleUpSaaS  2 ปีที่แล้ว

      You are welcome 🤗

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

    what do i need to edit in order to get this to work on my node.js express app, can I just copy over the scripts directory and or the appspect.yml file

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

      You can just do all the rest of the things, but when it come to clone the node js project. Use your clone repository instead :)
      Let us know if you need and help.
      And follow for more amazing tutorials

  • @RonTaktuk
    @RonTaktuk ปีที่แล้ว +1

    the linux instance you launched is the production server am i correct?

    • @ScaleUpSaaS
      @ScaleUpSaaS  ปีที่แล้ว

      Yes. Thanks for sharing!

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

    forgot to edit the deploy.yml file, when i create a user what all else needs to be done to get this to work thanks

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

      Thanks for sharing. Appreciated 🙌

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

    hi i have a unbuntu ec2 running and i have a basic express/node app ive edited the scrips files and the yml to reflect the name of my app and the directory is their anything else i need edit

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

      Thanks for sharing. Seems like you have been to solve it in your second comment. We are happy for you 🥲

  • @andrespatino1407
    @andrespatino1407 ปีที่แล้ว +1

    amazing video! just one thing everything works excet the code deploy, I logged the error and I get :
    "InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Missing credentials - please check if this instance was started with an IAM instance profile" I used the same exact roles as you did

    • @ScaleUpSaaS
      @ScaleUpSaaS  ปีที่แล้ว

      Thanks for sharing. Did you use ubuntu or amazon linux os?

    • @andrespatino1407
      @andrespatino1407 ปีที่แล้ว

      @@ScaleUpSaaS thanks for replying! Im using an ubuntu ec2

    • @ScaleUpSaaS
      @ScaleUpSaaS  ปีที่แล้ว

      @@andrespatino1407 I just tried again an everything works for me. Please try again from the beginning. Follow every step. It's need to work for you too :)

    • @bhagvathquotes5477
      @bhagvathquotes5477 ปีที่แล้ว +1

      i also got the same error. just restart the codedeploy agent.

    • @ScaleUpSaaS
      @ScaleUpSaaS  ปีที่แล้ว

      @@bhagvathquotes5477 Thanks for sharing :)

  • @sivan_banai
    @sivan_banai 2 ปีที่แล้ว +1

    Awesome content!!

    • @ScaleUpSaaS
      @ScaleUpSaaS  2 ปีที่แล้ว

      Happy to hear that :).

  • @SivanBanai
    @SivanBanai 2 ปีที่แล้ว +1

    Helped me so muchh!!! Thank you 🙏🏼

    • @ScaleUpSaaS
      @ScaleUpSaaS  2 ปีที่แล้ว

      Happy to hear that 👍😀

  • @NeerajBhasin28
    @NeerajBhasin28 ปีที่แล้ว +1

    how can i add .env variables to it?

    • @ScaleUpSaaS
      @ScaleUpSaaS  ปีที่แล้ว +1

      You can use aws secrets and deployment hooks for that for example :)

  • @411sev
    @411sev ปีที่แล้ว +1

    Thanks

    • @ScaleUpSaaS
      @ScaleUpSaaS  ปีที่แล้ว

      Thanks for sharing. Appreciate.

  • @soso2413
    @soso2413 9 วันที่ผ่านมา +1

    I created the pipeline and tried to run it. It failed at Deployment with this message:
    Deployment error code
    HEALTH_CONSTRAINTS
    Deployment error message
    The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems
    Please, can you advise on how to resolve this?
    Thanks

    • @ScaleUpSaaS
      @ScaleUpSaaS  8 วันที่ผ่านมา

      Thanks for sharing. Seems like issue with security group access. Please go over the tutorial again from beginning and from scratch. it need to work smoothly!

    • @soso2413
      @soso2413 8 วันที่ผ่านมา +1

      @@ScaleUpSaaS For the inbound rule, I am using Port Type: ssh, Protocol: TCP, Port Range:22, Source: Anywhere IPV4 and Port Type: Custom TCP, Protocol: TCP, Port Range: 3000, Source: Custom

    • @ScaleUpSaaS
      @ScaleUpSaaS  8 วันที่ผ่านมา

      @@soso2413 what is the source in port 3000?

    • @soso2413
      @soso2413 8 วันที่ผ่านมา +1

      @@ScaleUpSaaS The source of Port 3000 is the security group name

    • @ScaleUpSaaS
      @ScaleUpSaaS  8 วันที่ผ่านมา

      @@soso2413 please follow the tutorial again. Make everything from scratch. It need to work.