Jul 10, 2018

AWS CLI: How to remove all items from AWS DynamoDB by recreating tables?

A while ago I wrote about removing items from DynamoDB one by one AWS CLI: How to remove all items from AWS DynamoDB table with complex key? unfortunately it's very very very slow approach and I've found the best way: recreate tables :) Script:
aws_profile=your profile
aws dynamodb --profile $aws_profile delete-table --table-name your-table
aws dynamodb --profile $aws_profile create-table --table-name your-table --attribute-definitions AttributeName=dataDateTime,AttributeType=S AttributeName=userId,AttributeType=S --key-schema AttributeName=userId,KeyType=HASH AttributeName=dataDateTime,KeyType=RANGE --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 --sse-specification Enabled=true


  1. Привет!
    Ты бы не мог обновить ссылку на проект

  2. Today I came to my friend's place to have a drink and chat, and all this time she sat at the computer I was very surprised but she sat and played in an online casino grand bacarat casino how wins and decided to try it myself now my ears do not ottyanes