Skip to content

Instantly share code, notes, and snippets.

@shio-phys
Created March 1, 2016 06:57
Show Gist options
  • Save shio-phys/ac480fc5c1a91c7f48bc to your computer and use it in GitHub Desktop.
Save shio-phys/ac480fc5c1a91c7f48bc to your computer and use it in GitHub Desktop.
dynamodb = DynamoDB.instance
dynamodb.create_table({
table_name: 'crawled_items',
key_schema: [
{ attribute_name: 'original_url', key_type: 'HASH', },
{ attribute_name: 'taskgroup_id', key_type: 'RANGE', },
],
attribute_definitions: [
{ attribute_name: 'original_url', attribute_type: 'S', },
{ attribute_name: 'taskgroup_id', attribute_type: 'S', },
],
provisioned_throughput: { read_capacity_units: 1, write_capacity_units: 1, },
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment