ECS — Complete Guide
ECS — Complete Guide: free step-by-step lesson with examples, common mistakes, and interview tips — part of AWS Cloud Tutorial on Toolliyo Academy.
On this page
AWS Cloud Tutorial · Lesson 27 of 100
ECS
Core services → Projects
Core services · 1 — AWS basics · ~6 min · AWS — Compute Services
What is this?
Amazon ECS runs Docker containers on AWS-managed infrastructure or your EC2 fleet. Tasks and services define how containers run and scale.
Why should you care?
AwsVerse containerizes .NET APIs on ECS Fargate for simpler ops than self-managed Kubernetes.
See it live — copy this example
Run in AWS CloudShell / local AWS CLI v2, or follow the matching steps in the AWS Console (Free Tier).
aws ecs register-task-definition \
--family awsverse-api \
--network-mode awsvpc \
--requires-compatibilities FARGATE \
--cpu 256 --memory 512 \
--container-definitions '[{"name":"api","image":"123.dkr.ecr.ap-south-1.amazonaws.com/awsverse-api:latest","portMappings":[{"containerPort":8080}]}]'
What happened?
- Registers a Fargate task definition with one container pulling from ECR.
- Create a service to keep desired count running.
Practice next
- Push image to ECR.
- Register task definition.
- Create ECS cluster and Fargate service with ALB.
- Add sidecar for ADOT tracing.
- Set deployment minimumHealthyPercent to 100.
Remember
ECS = AWS-native containers. Fargate = no EC2 to manage. Services maintain desired count.
AwsVerse container fleet
Team knows Docker but not k8s.
Outcome: ECS Fargate runs 12 microservices with ALB ingress.
Interview prep for this lesson
Practice these questions aloud after reading—each links to a full structured answer.
Sign in to ask a question or upvote helpful answers.
No questions yet — be the first to ask!