BM: Baca dalam Bahasa Melayu
World A4: Containers in the Cloud
Fargate: no servers to look after
You will learn: to run ECS tasks on Fargate, pick the smallest size, and guard each task.
Checked with AWS 2026-11 on 1 Nov 2026
The problem
ECS needs computers to run your tasks. You could rent EC2 servers, patch them and resize them. Is there a lazier way?
Pick one answer.
Watch
Fargate: Containers with no servers to look after. The mall gives you a counter; you pay for its CPU and memory while it runs. runs each task with no server for you to look after. Some jobs stay yours. Sort them.
Drag a card into a box. Or tap the card, then tap the box.
Try it
Start one task on Fargate, the smallest size, in your public row. Build the command.
Tap the pieces in the right order.
Hint
The size lives on the recipe card:"cpu": "256" and "memory": "512".Predict
Your task uses 0.25 vCPU and 0.5 GB. What does Fargate bill you for?
Pick one answer.
Check
Each Fargate task gets its own door guard. For your test, only your laptop may visit on port 80.
Set the door guard's rules. Only the right visitors get in.
Visitors
- Your laptopshould get in
TCP 80from 203.0.113.9Its replies go back to ports 32768–61000. - Strangerkeep out
TCP 80from 192.0.2.77Its replies go back to ports 32768–61000. - Stranger (SSH)keep out
TCP 22from 192.0.2.77Its replies go back to ports 32768–61000.
Unit door · security group (the server)
Allow rules only. It remembers who came in, so replies always go out.
In
No In rules yet: nothing gets in.
Out: all traffic (a new group starts this way).
Hint
One rule: TCP 80 from 203.0.113.9/32.Check
Good Fargate habits, or risky? Swipe right for good.
Swipe right for good, left for needs work. Or use the buttons.
Start with 0.25 vCPU and 0.5 GB
You did it!
You can now run a small task on Fargate, behind its own guard.
Go deeper (optional)
Each Fargate task gets its own private IP, like a pod in Kubernetes World K3. To pull from a private ECR shelf, the task needs a task execution role. That role holds the pull keys.
Bahasa Melayu
ECS perlukan komputer untuk jalankan task anda. Anda boleh sewa server EC2, tampal dan ubah saiznya. Ada cara lebih senang?
Fargate (kaunter sedia ada) jalankan setiap task tanpa server untuk anda jaga. Ada kerja yang kekal milik anda. Susun mereka.
Mulakan satu task di Fargate, saiz paling kecil, dalam baris awam anda. Bina arahannya.
"cpu": "256" dan "memory": "512".Task anda guna 0.25 vCPU dan 0.5 GB. Apa yang Fargate caj?
Setiap task Fargate dapat pengawal pintunya sendiri. Untuk ujian anda, hanya laptop anda boleh melawat di port 80.
Tabiat Fargate yang baik, atau berisiko? Leret ke kanan untuk baik.
Kini anda boleh jalankan task kecil di Fargate, di belakang pengawalnya sendiri.
You finished this before. Practice is always welcome!
Official docs: Amazon ECS: AWS Fargate · Amazon ECS: Task CPU and memory · Amazon ECS: Fargate task networking · AWS CLI: aws ecs run-task · AWS Fargate pricing
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?