Skip to content

Instantly share code, notes, and snippets.

@kenvontucky
Last active March 2, 2020 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenvontucky/f0849e000da3c9e3f887edeb613ff0cc to your computer and use it in GitHub Desktop.
Save kenvontucky/f0849e000da3c9e3f887edeb613ff0cc to your computer and use it in GitHub Desktop.
domain keyvalue dynamodb table schema
TABLE_NAME = 'Domain'
DOMAIN = 'domain'
URL = 'url'
SCHEMA = {
'TableName': TABLE_NAME,
'AttributeDefinitions': [
{
'AttributeName': URL,
'AttributeType': 'S'
}
],
'KeySchema': [
{
'AttributeName': URL,
'KeyType': 'HASH'
}
],
'ProvisionedThroughput': {
'ReadCapacityUnits': 10,
'WriteCapacityUnits': 10
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment