Skip to content

Instantly share code, notes, and snippets.

@subzero112233
Last active September 6, 2020 12:24
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 subzero112233/a44d7c9bb74a723f9df35d3642f4c31a to your computer and use it in GitHub Desktop.
Save subzero112233/a44d7c9bb74a723f9df35d3642f4c31a to your computer and use it in GitHub Desktop.
#!/bin/bash
aws dynamodb create-table \
--table-name SanAntonioSpurs \
--attribute-definitions AttributeName=PlayerName,AttributeType=S AttributeName=JerseyNumber,AttributeType=N \
--key-schema AttributeName=PlayerName,KeyType=HASH AttributeName=JerseyNumber,KeyType=RANGE \
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
aws dynamodb put-item --table-name SanAntonioSpurs --item "{\"PlayerName\":{\"S\":\"Manu Ginobili\"},\"JerseyNumber\":{\"N\":\"20\"}, \"Position\":{\"S\":\"Shooting Guard\"}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment