0% found this document useful (0 votes)
2 views

nginx hosting with ECS clustering

The document outlines the steps to host an nginx application using AWS ECS. It includes creating a cluster named 'nginx-cluster' with default settings, defining a task for the cluster with an nginx container, and finally creating a task within the cluster. Key configurations include using Amazon EC2 instances and specifying the nginx image from Docker Hub.

Uploaded by

banda.aws09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

nginx hosting with ECS clustering

The document outlines the steps to host an nginx application using AWS ECS. It includes creating a cluster named 'nginx-cluster' with default settings, defining a task for the cluster with an nginx container, and finally creating a task within the cluster. Key configurations include using Amazon EC2 instances and specifying the nginx image from Docker Hub.

Uploaded by

banda.aws09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

We are going to host a cluster using AWS ECS.

Here are the steps you need to perform to host an nginx.

Go to AWS ECS service > Clusters > Create Cluster

1) Cluster Name: nginx-cluster (Here any name you want to give)


Infrastructure > Amazon EC2 Instances (Here there are two options Fargate
and EC2)

(everything default in ec2 instances)

Just edit  SSH keypair and add our ssh key so that we can log into the instance when it
is created)

Networking > everything default(I wanted to use amazon provided VPC, you can use
your own VPC)

Monitoring> I didn’t touched this.

Encryption > I didn’t touched this.


2) Cluster created

3) Create task definition for the cluster.


Here we specify infrastructure requirements, create containers. In create containers we can
specify all information we need inside container.
Task definition configuration >
Task definition family: nginx-ec2-task (any name)
Infrastructure requirements >
Select Amazon EC2 instance instead of AWS Fargate
Here every setting is default.
Container – 1 >
Container details
Name: nginx
Image URI: docker.io/library/nginx:latest
Essential container : Yes
Log collection : Use log collectionuntick/uncheck it.
Everything else is default till we learn other things.
4) Task creation inside cluster.
Our created cluster > Tasks > Create
Environment > Everything Default
Deployment configuration >
Application type: Task
Task definition :
Family : nginx-ec2-task (select our task definition)
Revision : 1 (LATEST)
Everything e lse is Default.

You might also like