dynamodb-copy-table
dynamodb-copy-table copied to clipboard
Tried using your script but it hangs on a dynamodb-local
Tried using your script but it hangs on a dynamodb-local . Here is the modified script I was trying to use. https://github.com/djangofan/dynamodb-copy-table
Here is how you can setup the local dynamodb:
- docker run -p 8000:8000 --name dynamodb-local --restart unless-stopped -d dwmkerr/dynamodb -sharedDb
- aws dynamodb create-table --table-name Music --attribute-definitions AttributeName=Artist,AttributeType=S AttributeName=SongTitle,AttributeType=S --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1
- aws dynamodb list-tables --endpoint-url http://192.168.99.100:8000
- then , try to copy it with this command: python dynamodb-copy-table.py Music copyof-Music true
Thanks @djangofan would you be willing to make a PR for your stuff?