dynamodb-copy-table icon indicating copy to clipboard operation
dynamodb-copy-table copied to clipboard

Tried using your script but it hangs on a dynamodb-local

Open djangofan opened this issue 7 years ago • 1 comments

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:

  1. docker run -p 8000:8000 --name dynamodb-local --restart unless-stopped -d dwmkerr/dynamodb -sharedDb
  2. 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
  3. aws dynamodb list-tables --endpoint-url http://192.168.99.100:8000
  4. then , try to copy it with this command: python dynamodb-copy-table.py Music copyof-Music true

djangofan avatar Jan 05 '18 01:01 djangofan

Thanks @djangofan would you be willing to make a PR for your stuff?

techgaun avatar Oct 04 '18 21:10 techgaun