Book Image

Amazon Fargate Quick Start Guide

By : Deepak Vohra
Book Image

Amazon Fargate Quick Start Guide

By: Deepak Vohra

Overview of this book

Amazon Fargate is new launch type for the Amazon Elastic Container Service (ECS). ECS is an AWS service for Docker container orchestration. Docker is the de facto containerization framework and has revolutionized packaging and deployment of software. The introduction of Fargate has made the ECS platform serverless. The book takes you through how Amazon Fargate runs ECS services composed of tasks and Docker containers and exposes the containers to the user. Fargate has simplified the ECS platform. We will learn how Fargate creates an Elastic Network Interface (ENI) for each task and how auto scaling can be enabled for ECS tasks. You will also learn about using an IAM policy to download Docker images and send logs to CloudWatch. Finally, by the end of this book, you will have learned about how to use ECS CLI to create an ECS cluster and deploy tasks with Docker Compose.
Table of Contents (14 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Creating an ECS service


Review the settings for theContainer definition, Task definition, and Service. The Edit button is provided to edit any of these ECS objects:

  1. To create the ECS with the Fargate launch type, click on Create in Review, as shown in the following screenshot:
  1. The ECS resources start to get created, as shown in Launch Status in the following screenshot. Some of the resources are shown as pending, while others are shown as complete. When all the ECS resources have been created, as indicated by the complete status, click on View service:

An ECS mysql-service gets created in the mysql cluster, as listed in the Services tab of the mysql, cluster as shown in the following screenshot:

The Task tab lists the tasks in the service, as shown in the following screenshot. Click on the task link to list the details of the task:

 The task details get displayed, including the ENI Id link shown in the following screenshot, in order to obtain details about the ENI. The Public IP and PrivateIP...