Error You must specify a region when running command aws ecs list-container-instances

后端 未结 5 791
时光说笑
时光说笑 2021-02-01 00:25

I am trying to use aws container service as per the documentation in http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_GetStarted.html

The below error is th

5条回答
  •  深忆病人
    2021-02-01 00:36

    Just to add to answers by Mr. Dimitrov and Jason, if you are using a specific profile and you have put your region setting there,then for all the requests you need to add

    "--profile" option.

    For example:

    Lets say you have AWS Playground profile, and the ~/.aws/config has [profile playground] which further has something like,

    [profile playground] region=us-east-1

    then, use something like below

    aws ecs list-container-instances --cluster default --profile playground

提交回复
热议问题