[英]aws ec2 us-east-2 is an invalid region choice
I have created a new instance on us-east-2, configured the security groups, policies and access rules and I can see it running and access it via the browser. 我在us-east-2上创建了一个新实例,配置了安全组,策略和访问规则,我可以看到它正在运行并可以通过浏览器访问它。 However, when I attempt to connect to it via the aws-cli, it tells me us-east-2 is an invalid choice for the region.
但是,当我尝试通过aws-cli连接到它时,它告诉我us-east-2对于该区域是无效的选择。
What am I missing here? 我在这里想念什么? It is clearly a region on AWS:
显然,这是AWS上的一个区域:
I am running Ubuntu and aws --version
results in: aws-cli/1.2.9 Python/3.4.3 Linux/3.13.0-100-generic 我正在运行Ubuntu和
aws --version
结果在:aws-cli / 1.2.9 Python / 3.4.3 Linux / 3.13.0-100-generic
I am trying to connect to the instance via aws ec2 get-console-output --instance-id XXXXXXXX --region us-east-2
我正在尝试通过
aws ec2 get-console-output --instance-id XXXXXXXX --region us-east-2
连接到实例
You CLI version is outdated by 3 years and it doesn't know the new regions. 您的CLI版本已过期3年,并且不知道新的区域。 Can you upgrade the CLI to 1.10.x and try?
您可以将CLI升级到1.10.x并尝试吗?
$ aws --version
aws-cli/1.10.66 Python/2.7.12 Linux/3.14.35-28.38.amzn1.x86_64 botocore/1.4.56
$ aws ec2 describe-regions
{
"Regions": [
{
"Endpoint": "ec2.us-east-2.amazonaws.com",
"RegionName": "us-east-2"
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.