Day 38: Deploying Containerized Applications with Amazon ECS
100 Days of Cloud (AWS)

I'm Zin Lin Htet. Who love to learn and share about Linux, Cloud, Docker and K8s. Currently working as a DevOps Engineer at one of the famous Fintech Company in Myanmar.
Welcome to Day 38. Today we will learn how to deploy containerized applications with Amazon ECS.
What is AWS ECS?
Amazon Elastic Container Service (ECS) is a fully managed container orchestration service provided by AWS. It allows you to run, scale, and manage Docker containers without having to install or operate your own cluster management software.
Core Concepts
Task Definition: A JSON file (the "blueprint") that describes one or more containers. It specifies parameters like the Docker image to use, how much CPU/Memory is needed, and which ports should be open.
Task: An "instance" of a Task Definition. This is the actual running container (or group of containers) on your cluster.
Service: Manages the "desired state" of your tasks. For example, if you tell a Service to run 3 copies of a task, it will automatically restart any that crash to ensure 3 are always running.
Cluster: A logical grouping of your tasks and services.






cd /root/pyapp/
ls
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 198646816501.dkr.ecr.us-east-1.amazonaws.com
docker build -t xfusion-ecr .
docker tag xfusion-ecr:latest 198646816501.dkr.ecr.us-east-1.amazonaws.com/xfusion-ecr:latest
docker push 198646816501.dkr.ecr.us-east-1.amazonaws.com/xfusion-ecr:latest




















Congratulations you did it. It looks good. This lab was successfully completed without any errors. See you in day 39. If you have any issues please let me know I will be happy to assist you. Stay tuned and learn together. If you find my article useful, please kindly like and share it.




