【发布时间】:2013-10-22 12:03:06
【问题描述】:
是否有 EC2_* 环境变量来指定 EC2 命令行工具的默认区域以避免为每个命令指定 --region eu-west-1 选项?
【问题讨论】:
是否有 EC2_* 环境变量来指定 EC2 命令行工具的默认区域以避免为每个命令指定 --region eu-west-1 选项?
【问题讨论】:
对于最新的 AWS CLI:
export AWS_DEFAULT_REGION=eu-west-1
参考:
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
对于较旧的 EC2 CLI:
export EC2_URL=https://ec2.eu-west-1.amazonaws.com
参考:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SettingUp_CommandLine.html
【讨论】: