Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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

Configuring ECS CLI


Configuring the ECS CLI involves the following two configurations:

  • Configure an ECS cluster with the Fargate launch type
  • Configure an ECS CLI profile

Next, we shall discuss each of these configurations. The syntax to configure a cluster is as follows:

ecs-cli configure --cluster cluster_name --default-launch-type launch_type --region region_name --config-name configuration_name

The different command parameters in the ecs-cli configure command are discussed in this table:

Command parameter

Description

Value to set

--cluster

Name of an existing ECS cluster or a new cluster to create

hello-world

--region

AWS region

us-east-1

--default-launch-type

Launch type

FARGATE

--config-name

Configuration name

hello-world

 

  1. Run the following command in PowerShell to configure an ECS cluster:
      ecs-cli configure --cluster hello-world --region us-east-1 --default-
      launch-type FARGATE --config-name hello-world
  1. Create a directory, C:\PowerShell, for PowerShell and run the preceding command from the directory...
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