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 Secret Access Key, which would be different for different users:
      ecs-cli configure profile --access-key $AWS_ACCESS_KEY_ID --
secret-key $AWS_SECRET_ACCESS_KEY --profile-name hello-world
  1. As the output from the command indicates, an ECS CLI profile gets saved:
      PS C:PowerShell> ecs-cli configure profile --access-key Abcdef --
secret-key D+d+KidQel/myUXJi/hJjtk --profile-name hello-world
time="2018-01-09T15:46:15-08:00" level=info msg="Saved ECS CLI
profile configuration hello-world."
  1. As an alternative to creating a hello-world profile (or some other profile name), a default ECS profile may be created using the -StoreAs default parameter:
      PS C:PowerShell> Set-AWSCredential -AccessKey AKIAJ4DECNW6BFYN5PNA -
SecretKey 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 -StoreAs default
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.235.23