Skip to content

Commit

Permalink
Merge pull request #33 from clearcare/NOJIRA-do-not-hardcode-region
Browse files Browse the repository at this point in the history
NOJIRA do not hardcode region. Needs to work in Canada
  • Loading branch information
grayaii authored Jun 6, 2018
2 parents eb9254b + a941ab2 commit 8b6d142
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cc_dynamodb3/connection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from boto3.session import Session

from .config import get_config
Expand All @@ -24,7 +25,7 @@ def get_connection(as_resource=True, use_cache=True):
session = Session(
aws_access_key_id=config.aws_access_key_id,
aws_secret_access_key=config.aws_secret_access_key,
region_name='us-west-2',
region_name=os.environ.get('CC_AWS_REGION', 'us-west-2'),
)

if config.host:
Expand Down

0 comments on commit 8b6d142

Please sign in to comment.