aws dynamodb

Manipulate an AWS Dynamodb database, a fast NoSQL database with predictable performance and seamless scalability. More information: https://docs.aws.amazon.com/cli/latest/reference/dynamodb/.

aws dynamodb create-table --table-name {{table_name}} --attribute-definitions {{AttributeName=S,AttributeType=S}} --key-schema {{AttributeName=S,KeyType=HASH}} --provisioned-throughput {{ReadCapacityUnits=5,WriteCapacityUnits=5}}

aws dynamodb list-tables

aws dynamodb describe-table --table-name {{table_name}}

aws dynamodb put-item --table-name {{table_name}} --item '{{{"AttributeName": {"S": "value"}}}}'

aws dynamodb get-item --table-name {{table_name}} --key '{{{"ID": {"N": "1"}}}}'

aws dynamodb update-item --table-name {{table_name}} --key '{{{"ID": {"N": "1"}}}}' --update-expression "{{SET Name = :n}}" --expression-attribute-values '{{{":n": {"S": "Jane"}}}}'

aws dynamodb scan --table-name {{table_name}}

aws dynamodb delete-item --table-name {{table_name}} --key '{{{"ID": {"N": "1"}}}}'