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

Overview of CloudWatch Logs and aws log driver

Amazon CloudWatch is an AWS service for monitoring logs from AWS resources, including Amazon ECS, EC2, EBS volumes, Elastic Load Balancers, and RDS. Metrics for CPU utilization, memory utilization, latency, and request counts are streamed in near-real time from these resources to CloudWatch. Some CloudWatch terms and concepts are discussed in the following table:

CloudWatch concept


Log event

log event, which includes a log message and a timestamp, is a record of some event/activity on a resource or application.

Log stream

log stream is a continuous sequence of log events from the same resource or application.

Log group

log group is a group of log streams that share the same retention, monitoring, and access control settings. Each log stream is associated with a single log group, and the log streams in a log group do not have to originate from the same resource or application. More often, the log streams originate from different resources...