Setting up a CLI profile

The command syntax to configure an ECS CLI profile is as follows:

ecs-cli configure profile --profile-name profile_name --access-key $AWS_ACCESS_KEY_ID --secret-key $AWS_SECRET_ACCESS_KEY

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

Command parameter

Description

Value to set

--profile

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

hello-world

--access-key

AWS access key ID

Value would be different for different users

--secret-key

Secret access key

Value would be different for different users

 

  1. Create an ECS CLI profile, hello-world, in which the variables need to be substituted with the AWS Access Key ID and ...

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.