Installing ECS CLI

To install ECS CLI on PowerShell, first run PowerShell as an administrator by right-clicking on Windows PowerShell and selecting Run as administrator:

  1. Subsequently, run the following command to create a new item of type directory at the specified path:
New-Item -ItemType "directory" -Path "C:\Program Files\Amazon\ECSCLI"
  1. Download and install ecs-cli ecs-cli-windows-amd64-latest.exe to application ecs-cli.exe in directory C:\Program Files\Amazon\ECSCLI\.
Invoke-WebRequest -OutFile ‘C:\Program Files\Amazon\ECSCLI\ecs-cli.exe’ https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-windows-amd64-latest.exe
  1. Add C:\Program Files\Amazon\ECSCLI to the PATH environment variable. Output the ecs-cli version:
ecs-cli --version

The preceding ...

Get Amazon Fargate Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.