Skip to content

Dynamodb

List all tables

aws dynamodb scan list-tables

Backup a table

aws dynamodb scan --table-name TABLE-NAME > backup.json

Get a single record by ID

aws dynamodb get-item --table-name TABLE-NAME --key '{"id": {"S":"the-id-to-look-for"}}'

Delete a single record by ID

aws dynamodb delete-item --table-name TABLE-NAME --key '{"id": {"S":"the-id-to-look-for"}}'