Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Amazon Fargate Quick Start Guide

You're reading from   Amazon Fargate Quick Start Guide Learn how to use AWS Fargate to run containers with ease

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781789345018
Length 190 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Deepak Vohra Deepak Vohra
Author Profile Icon Deepak Vohra
Deepak Vohra
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Getting Started with Amazon ECS and Amazon Fargate FREE CHAPTER 2. Networking 3. Using CloudWatch Logs 4. Using Auto Scaling 5. Using IAM 6. Using an Application Load Balancer 7. Using Amazon ECS CLI 8. Other Books You May Enjoy

Using CloudWatch Logs

Docker containers generate logs, and Docker supports the docker logs and docker service logs commands to list logs. Docker also supports logging drivers, which are logging mechanisms to get logs generated by running containers and services.

Problem: Without a managed service, such as Amazon ECS, a logging driver must be configured if a logging mechanism is to be added.

Solution: With the Fargate launch type, logging is greatly simplified and the only supported logging driver is awslogs. The awslogs logging driver streams logs generated by ECS tasks to CloudWatch Logs. Using aws-logs-prefix, a label may be associated with the awslogs driver to differentiate between the log streams generated by the different tasks containers.

In this chapter, we will learn about the following:

  • Overview of CloudWatch Logs and aws log driver
  • Creating an ECS service...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime