AMAZON ELASTIC CONTAINER SERVICE

Naman Sharma
4 min readJul 14, 2023

--

What are Containers ?

Containers are an abstraction at the app layer that packages code and dependencies together. Multiple containers can run on the same machine and share the OS kernel with other containers, each running as isolated processes in users pace. In other words, containers are a form of operating system virtualization. A single container can be used to run anything from a small microservice to a software process to a large application. A container contains all the necessary executables, binary code, libraries, and configuration files. Containers do not contain operating system images when compared to server or machine virtualization systems. This makes them more lightweight and portable, and the overhead is much smaller. In large application extensions, multiple containers can be placed in one or more container clusters. Such groups are run by a container orchestrator such as Kubernetes or Docker Swarm.

What is ECS ?

Amazon Elastic Container Service (ECS) is a cloud computing service in Amazon Web Services (AWS) that manages containers and lets developers run applications in the cloud without having to configure an environment for the code to run in. It enables developers with AWS accounts to deploy and manage scalable applications that run on groups of servers called clusters through API calls and task definitions. Amazon ECS is a scalable service accessible through the AWS Management Console and SDKs.

Flow Diagram .

Steps to use ECS service :

Step 1 : Login to AWS console and search for ECS service .

Step 2 : Create Clusters .

Create a new VPC .

Three different ways for infrastructure (Launch Type):

EC2 : register and manage the EC2 instances yourself.

Fargate : serverless , magically handle for you .

External ECS : for on-premise server that you register and manage remotely.

Use default simply i.e. AWS Fargate .
Infrastructure .

Step 3 : Create a task definition .

Go to Amazon ECR and copy the link of Nginx.
public.ecr.aws/nginx/nginx:perl
We cam also add more containers.

Step 4 : Configure environment, storage, monitoring, and tags .

Step 5 : Go back to cluster and under the service deploy the cluster .

Here we can see we have one active service click on tasks .

Step 6 : Go to networking under task definitions .

For Public access create a security group .

Step 7 : Go to services under cluster and access the server .

Click on the service and then on public IP address .

Thankyou for reading ..

--

--

Naman Sharma
Naman Sharma

Written by Naman Sharma

Hi there! I'm excited to be sharing my ideas with you on this platform. I'm a curious and creative individual with a passion for exploring new topics.

No responses yet