错误“您必须指定区域"运行任何 aws CLI 命令时 [英] Error "You must specify a region" when running any aws CLI command

查看:30
本文介绍了错误“您必须指定区域"运行任何 aws CLI 命令时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照 http://docs 中的文档使用 aws 容器服务.aws.amazon.com/AmazonECS/latest/developerguide/ECS_GetStarted.html

运行命令时抛出以下错误:

The below error is thrown when running the command:

aws ecs list-container-instances --cluster default

You must specify a region. You can also configure your region by running "aws configure".

文档没有提到任何关于指定默认区域的内容.我们如何在控制台中执行此操作?

The documentation does not mention anything about specifying a default region. How do we do it in a console?

推荐答案

我认为你需要使用例如:

I think you need to use for example:

aws ecs list-container-instances --cluster default --region us-east-1

这当然取决于您所在的地区.

This depends of your region of course.

这篇关于错误“您必须指定区域"运行任何 aws CLI 命令时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆