Skip to content

Commit 0e86c41

Browse files
authored
Merge pull request #168 from iojior/Remove-hard-coded-region
Implemented #168, removed the hard coded region and assign it as default when retrieving the enviromental variable.
2 parents 0ebf75f + 7ade485 commit 0e86c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workshops/relational-migration/chalicelib/dynamodb_calls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
serializer = boto3.dynamodb.types.TypeSerializer()
1414

1515
return_limit = 20
16-
region = 'us-west-2'
16+
region = os.getenv('AWS_DEFAULT_REGION','us-west-2')
1717

1818
ddb = boto3.client('dynamodb', region_name=region)
1919
ddbr = boto3.resource('dynamodb', region_name=region)

0 commit comments

Comments
 (0)