Commit f415d39d by James Cammarata

Merge pull request #12690 from stelligent/devel

Use AWS_DEFAULT_REGION env var if none specified
parents cfa62e7a 55b3f9e4
......@@ -124,6 +124,8 @@ def get_aws_connection_info(module, boto3=False):
if not region:
if 'AWS_REGION' in os.environ:
region = os.environ['AWS_REGION']
elif 'AWS_DEFAULT_REGION' in os.environ:
region = os.environ['AWS_DEFAULT_REGION']
elif 'EC2_REGION' in os.environ:
region = os.environ['EC2_REGION']
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment