aws dynamodb list-tables | jq -r .TableNames[]
userdata_hk
userdata_vn
userdata_sg
providers
events
|:warning:| This command will stream ALL items untill SIGINT is sent
aws dynamodb scan --table-name events
aws dynamodb scan --table-name events --select COUNT | jq .ScannedCount
726119
aws dynamodb get-item --table-name events --key '{"email": {"S": "admin@mdminhazulhaque.io"}}'
{
"Item": {
"email": {
"S": "admin@mdminhazulhaque.io"
},
"created_at": {
"N": "1554780667296"
},
"event_type": {
"S": "DISPATCHED"
}
}
}
aws dynamodb get-item --table-name events --key '{"email": {"S": "admin@mdminhazulhaque.io"}}' --attributes-to-get event_type
{
"Item": {
"event_type": {
"S": "DISPATCHED"
}
}
}
aws dynamodb delete-item --table-name events --key '{"email": {"S": "admin@mdminhazulhaque.io"}}'