Skip to main content

Command Palette

Search for a command to run...

Day 38: Deploying Containerized Applications with Amazon ECS

100 Days of Cloud (AWS)

Updated
2 min read
Day 38: Deploying Containerized Applications with Amazon ECS
Z

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.

100 Days of Cloud (AWS)

Part 13 of 50

In this series you will learn how to configure and manage cloud resources using AWS. My intention is to provide an explanation and share the answers for 100 Days of Cloud (AWS) from KodeKloud.

Up next

Day 37: Managing EC2 Access with S3 Role-based Permissions

100 Days of Cloud (AWS)

More from this blog

Technical 101

69 posts

"Mingalarbar , I am an IT guy from Myanmar who enjoys learning and sharing about Linux, Cloud, Docker & K8s. I am planning to share my expertise with the information technology communities in Burma