Skip to content

Instantly share code, notes, and snippets.

@knil-sama
Last active February 18, 2018 20:48
Show Gist options
  • Select an option

  • Save knil-sama/4696e886290d38b7b04771f7c1beb490 to your computer and use it in GitHub Desktop.

Select an option

Save knil-sama/4696e886290d38b7b04771f7c1beb490 to your computer and use it in GitHub Desktop.
import boto3
dynamodb = boto3.resource('dynamodb')
table = dynamodb.create_table(
TableName='fake_table',
KeySchema=[ { 'AttributeName': 'id_key', 'KeyType': 'HASH' }, ],
AttributeDefinitions=[ { 'AttributeName': 'id_key', 'AttributeType': 'S' }, ],
ProvisionedThroughput={ 'ReadCapacityUnits': 10, 'WriteCapacityUnits': 10 } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment