← Back to list

DEPLOY BACKEND DOCKER IMAGE ON ECS usin

1. CREATE CLUSTER:

Muhammad Anwar · 2025-08-21 11:21 · 0 claps · 3.1 min read
#aws-ecs #vpc #ecr #application-load-balancer #target-group
Open on Medium ↗
Wiki topics: 🌐 · Web Development ☁️ · DevOps & Cloud

DEPLOY BACKEND DOCKER IMAGE ON ECS

1. CREATE CLUSTER:

2. Create ECR REPO:

3. Push Image to ECR Repo:

aws configure (which cli user is connected)

aws configure — profile=<user name> (to create new user for cli access)

cat ~/.aws/credentials (list of current cli users)

export AWS_PROFILE=<user name> (to switch user)

4. Create VPC and more:

5. Create ACM certificate for Wild card and also create record for ROUTE 53:

EXAMPLE: *.taimoor.site

6. Create Security Group for ALB:

Select your vpc for alb: allow HTTP,HTTPS AND All-TCP 0.0.0.0/0

7. Create Target Group:

8. Create ALB:

9. Go to Cluster and Create Task Definition:

Container port must be same:

10. Create Security Group for Service:

11. Go to Cluster and Create Service:

12. Go to ALB and add HTTPS Listner:

13. Add Listner Rule:

14. Create Reacord in ROUTE 53 against ALB DNS:

15. Verify:


메타데이터
post_id
b1bc8f6913ff
slug
deploy-backend-docker-image-on-ecs-usin-b1bc8f6913ff
url
https://medium.com/@i211232/deploy-backend-docker-image-on-ecs-usin-b1bc8f6913ff
canonical_url
https://medium.com/@i211232/deploy-backend-docker-image-on-ecs-usin-b1bc8f6913ff
author_url
https://medium.com/@i211232
status
ok
fetched_at
2026-06-20 20:29:01