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

preview_player
Показать описание
If you wanna learn today how to automate application deployment into AWS EC2 using AWS CodeDeploy and AWS CodePipeline as soon as application new commit code is pushed to GitHub - This aws ci cd pipeline tutorial - Step by Step - is for you!

Topics and steps Discussed:

- How to launch AWS ec2 linux server and ssh to it
- How to install AWS codeDeploy agent
- How to integrate AWS CodeDeploy with GitHub for continuous deployment (ci cd)
- How to integrate AWS CodePipeline with GitHub and AWS - CodeDeploy for continuous deployment(ci cd)
- Demo of AWS CodeDeploy and AWS CodePipeline working together

GitHub Sample Application source code and link for Steps

Feel free to follow for more amazing aws tutorial

Want to support my channel? ☕️

======= Aws CI CD pipeline tutorial - Step By Step ======

[00:00] Intro - AWS CI CD Pipeline with github CodeDeploy & CodePipeline
[02:25] [Step 1]: Launch new EC2 Linux Instance
[12:23] [Step 3]: Install aws CodeDeploy agent
[14:00] [Step 4]: Create two new Roles with CodeDeploy permission
[16:26] [Step 5]: Setup Aws CodeDeploy
[23:45] [Step 6]: Setup Aws CodePipeline
[25:33] [Step 7]: CI CD Pipeline - Live Demo

============= AWS services ============
- AWS CodeDeploy
- AWS CodePipeline
- AWS EC2
- CI CD Pipeline

#cicd #codedeploy #codepipeline
Рекомендации по теме
Комментарии
Автор

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

dantesbytes
Автор

Exactly what I was searching for! Thanks 🙏

tarnum
Автор

Great.need more cicd realtime projects. thank you

vijaya
Автор

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.

abiodunalao
Автор

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

dantesbytes
Автор

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

lawais
Автор

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

dantesbytes
Автор

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

dantesbytes
Автор

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

RonTaktuk
Автор

amazing video! just one thing everything works excet the code deploy, I logged the error and I get :

Missing credentials - please check if this instance was started with an IAM instance profile" I used the same exact roles as you did

andrespatino
Автор

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

soso