Articles → AWS → AWS Elastic Container ServiceAWS Elastic Container ServiceIn this article, we will discuss the AWS Elastic Container Service.Terminologies ECS cluster is the logical grouping of container instances that you manage together.A container instance is a virtual or physical machine that runs the Docker engine and hosts one or more Docker containers. A container is a collection of tasks.A task is a set of containers that logically belong together and should be run on the same container instance. A task contains one or more containers.How To Create The Elastic Container Service In AWS? The first step is to search the Elastic Container Service in the search result.A screen will appear to create the cluster.Click on the Create cluster button. The Create cluster screen will appear.Select the Cluster name and scroll to the Infrastructure section. Select AWS Fargate (serverless).Click on the Create button to create the cluster. Task Definition Creation Once the cluster is created, the next step is to create a task. For that, click on the Task definitions menu on the left-hand side.A screen will appear to create the task definitions.Click on the Create new task definition button. The Create new task definition screen will appear. Enter the Task definition family. Scroll down to select Launch type as AWS Fargate in the Infrastructure requirements section.Scroll down and select the image for the container. Scroll to the bottom and click on the Create button to create the task definition.Create A Service Inside The Cluster Go to the details of the cluster created in the last section. In the Services tab, click on the Create button.In the create screen, specify the Capacity provider as FARGATE.Scroll down further and specify the Application type, Task definition, and Service name.Scroll down to the bottom and click on the Create button to create the services.The service and tasks are created.Check The Output If you click on the open address link on the Public IP.You can see the home page of nginx.Posted By - Karan Gupta Posted On - Saturday, February 3, 2024 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
Query/Feedback