dynamodb-toolkit

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2019 License: MIT Imports: 8 Imported by: 0

README



DynamoDB Toolkit

A command line dynamodb toolkit




dynamotk is a command line toolkit for aws dynamodb that provides some useful utilities that are not supported by dynamodb operations and official aws cli tools.

Installation

Using go get

Go version 1.10 or higher is required.

go get github.com/mingrammer/dynamodb-toolkit

Using homebrew

brew tap mingrammer/homebrew-taps
brew install dynamodb-toolkit

Using .tar.gz archive

Download gzip file from Github Releases according to your OS. Then, copy the unzipped executable to under system path.

Features

  • Table truncate
  • Coming soon... (maybe dump/restore features)

Usage

Truncate

# Truncate the `user` table from local dynamodb.
$ dynamotk --endpoint http://localhost:8000 truncate --table-names user

# Truncate the `user`, `item` tables from aws dynamodb with default credentials.
$ dynamotk truncate --table-names user,item

# You can also pass the `access key id`, `secret access key`, `profile` and `region` optionally. (see `dynamotk -h`)
$ dynamotk --access-key-id xxx --secret-access-key xxx --region ap-northeast-2 truncate --table-names user,item

# Truncation is just (concurrently) repeating the delete operations for all keys.
# So if your tables are big, there could be cost overhead.
# In this case, you can use `--recreate` option.
# It will delete the table itself and recreate the table while preserving the description.
$ dynamotk --profile prod truncate --table-names largetable --recreate

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL