Created
April 8, 2020 14:16
-
-
Save ProfAvery/d2ebb06193dcc7c3d465eaaef1a6a0a5 to your computer and use it in GitHub Desktop.
Flask-Dynamo configuration fixes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.config['DYNAMO_TABLES'] = [ | |
dict( | |
TableName='users', | |
KeySchema=[dict(AttributeName='username', KeyType='HASH')], | |
AttributeDefinitions=[dict(AttributeName='username', AttributeType='S')], | |
ProvisionedThroughput=dict(ReadCapacityUnits=5, WriteCapacityUnits=5) | |
), dict( | |
TableName='groups', | |
KeySchema=[dict(AttributeName='name', KeyType='HASH')], | |
AttributeDefinitions=[dict(AttributeName='name', AttributeType='S')], | |
ProvisionedThroughput=dict(ReadCapacityUnits=5, WriteCapacityUnits=5) | |
) | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.config['DYNAMO_TABLES'] = [ | |
{ | |
'TableName': 'users', | |
'KeySchema': [dict(AttributeName='username', KeyType='HASH')], | |
'AttributeDefinitions': [dict(AttributeName='username', AttributeType='S')], | |
'ProvisionedThroughput': dict(ReadCapacityUnits=5, WriteCapacityUnits=5) | |
}, { | |
'TableName': 'groups', | |
'KeySchema': [dict(AttributeName='name', KeyType='HASH')], | |
'AttributeDefinitions': [dict(AttributeName='name', AttributeType='S')], | |
'ProvisionedThroughput': dict(ReadCapacityUnits=5, WriteCapacityUnits=5) | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment