是否有EC2_*
环境变量来指定EC2命令行工具的默认区域,以避免为每个命令指定--region eu-west-1
选项?
答案 0 :(得分:10)
:
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