Skip to content

Instantly share code, notes, and snippets.

@GRGSIBERIA
Created February 4, 2014 07:33
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 GRGSIBERIA/8799493 to your computer and use it in GitHub Desktop.
Save GRGSIBERIA/8799493 to your computer and use it in GitHub Desktop.
db.client.create_table(
table_name: "test",
attribute_definitions: [
{attribute_name: "name", attribute_type: "S"},
{attribute_name: "number", attribute_type: "N"}
],
key_schema: [
{attribute_name: "number", key_type: "HASH"},
{attribute_name: "name", key_type: "RANGE"}
],
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