Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
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

Deploying the compose file to the cluster


The ecs-cli compose service up command deploys a Docker compose file to a cluster. The command may optionally be parameterized with the command options discussed in this table:

Parameter

Description

Default value

--project-name

Project name

The current directory

--ecs-params

ECS params file to use

The ecs-params.yml in the current directory

--create-log-groups

Creates CloudWatch Log groups for container logs

 

--file

Docker compose file

The docker-compose.yml file in the current directory

 

Run the following command in which the --project-name and --create-log-groups options are used. We don’t need to use the other options, as the required files are in the current directory:

ecs-cli compose --project-name hello-world service up --create-log-groups

The Docker compose file gets deployed on the hello-world cluster. The output from the command is shownhere:

The hello-world cluster lists one running task, as shown here:

Click on the hello-world cluster link to display its...

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 $19.99/month. Cancel anytime
Banner background image