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

Setting up the environment


If PowerShell is not already installed, download and install PowerShell 3.0 or a later version. Windows Management Framework 3.0 includes PowerShell 3.0:

  1. Log in to PowerShell as an Administrator for which right-click on PowerShell application, and select Run as administrator
  2.  Verify that the version is 3.0 with the get-host command
  3. Enable script execution with the following command, which allows all user-created scripts to run, and all scripts downloaded from the internet would need to be signed:
      Set-ExecutionPolicy RemoteSigned

We also need to obtain the AWS Security credentials represented with an Access Key, which consists of an Access Key ID and Secret Access Key:

  1. To obtain the security credentials, select My Security Credentials from the account dropdown.
  2. In the confirmation dialog, click on Continue to Security Credentials.
  3. The Your Security Credentials page is displayed; select Access keys. Security credentials only display the Access Key ID and not the Secret...