如何通过命令行获取Amazon区域列表?

Modified on: Sun, 10 Jun 2018 05:26:23 +0800

我想看看如何在命令行上从AWS获取区域列表,以便我可以快速查看,我该怎么做?

最佳答案

您可以通过从命令行运行命令 ec2-describe-regions 来执行此操作(如果您在多重宇宙中安装了ec2-api-tools)。

$ ec2-describe-regions
REGION  eu-west-1   ec2.eu-west-1.amazonaws.com
REGION  sa-east-1   ec2.sa-east-1.amazonaws.com
REGION  us-east-1   ec2.us-east-1.amazonaws.com
REGION  ap-northeast-1  ec2.ap-northeast-1.amazonaws.com
REGION  us-west-2   ec2.us-west-2.amazonaws.com
REGION  us-west-1   ec2.us-west-1.amazonaws.com
REGION  ap-southeast-1  ec2.ap-southeast-1.amazonaws.com
作者:lynxman

相关问答

添加新评论