Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 } )
Add Comment
Please, Sign In to add comment