Empty a small Dynamo DB table without deleting it.
When you're running tests with small amounts of data, it's much faster to wipe a Dynamo DB table than delete/recreate it.
Do not use with large amounts of data. It's much cheaper to delete/recreate the table, as this module will incur a read & write cost for every item in your table (under the hood it scans all items and then deletes one at a time).
This is for use on small tables only, in testing environments. For large tables it is much more efficient to delete and re-create the entire table.
yarn global add dynamodb-emptyOr:
npm install -g dynamodb-emptydynamodb-empty --table tableName| CD Feature | Provided |
|---|---|
| ✅ | Typescript |
| ✅ | Linting (AirBnB + Prettier) |
| ✅ | Unit tests (Jest) |
| ✅ | Coverage check (ideally 100% with Jest) |
| ✅ | Github Continuous Deployment |
This module is contributed by the team at Skyhook.