Is there an EC2_*
environment variable to specify the default region of the EC2 command line tools in order to avoid specifying the --region eu-west-1
option for each command?
for Latest AWS CLI:
export AWS_DEFAULT_REGION=eu-west-1
reference:
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
for older EC2 CLI:
export EC2_URL=https://ec2.eu-west-1.amazonaws.com
reference:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SettingUp_CommandLine.html