Deploy NestJS to ECS + CI/CD with GIthub

Опубликовано: 06 Июль 2026
на канале: Computing Power
6,042
159

In this video, we're going to deploy a NestJS (NodeJS) project to AWS ECS with a custom domain + HTTPS. We're also going to setup CI/CD for it using Github Actions to automate deployment whenever we make changes to the project.

Stable difusion API: https://platform.stability.ai/docs/ap...

Github project: https://github.com/Mpcsj-Computing/Ne...
IAM policy to deploy ECR Image + ECS Service:

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ecr:GetRegistryPolicy",
"ecr:GetAuthorizationToken",
"ecr:PutImageTagMutability",
"ecr:UploadLayerPart",
"ecr:ListImages",
"ecr:PutImage",
"ecs:UpdateService",
"ecr:BatchGetImage",
"ecr:CompleteLayerUpload",
"ecr:DescribeImages",
"ecr:DescribeRepositories",
"ecr:InitiateLayerUpload",
"ecr:BatchCheckLayerAvailability",
"ecr:GetRepositoryPolicy"
],
"Resource": "*"
}
]
}

0:00 - Introduction
0:46 - Prerequisites
2:20 - Project steps
4:47 - NestJS project to deploy
10:12 - Create ECR Container
10:55 - Create Github Actions (ECR deploy only)
14:07 - Setup Github Secrets + Env variables
20:56 - Setup ECS Cluster + Task Definition
25:06 - Create ECS Service
28:15 - Setup custom domain w/ Route53
30:00 - Redirect HTTP to HTTPS
32:52 - Setup Github Actions (include ECS deploy)
36:15 - Conclusion