# dynamin

> Dynamin can minimize(i.e. set to 1) the read and write capacity units of an Amazon DynamoDB tables and its indexes

Latest version **0.3.4** (published 2017-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install dynamin
pnpm add dynamin
yarn add dynamin
bun add dynamin
```

Provides the command `dynamin`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.4 |
| Published | 2017-12-25 |
| First published | 2017-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0 |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Takehiro Kaneko |
| Maintainers | takehilo |
| Keywords | aws, dynamodb, cli |

## Links

- npm: https://www.npmjs.com/package/dynamin
- Repository: https://github.com/takehilo/dynamin
- Issues: https://github.com/takehilo/dynamin/issues
- npm.io page: https://npm.io/package/dynamin

## Dependencies (6)

- [ora](https://npm.io/package/ora.md) ^1.3.0
- [chalk](https://npm.io/package/chalk.md) ^2.3.0
- [yargs](https://npm.io/package/yargs.md) ^10.0.3
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.149.0
- [configstore](https://npm.io/package/configstore.md) ^3.1.1
- [aws-creds-loader](https://npm.io/package/aws-creds-loader.md) ^0.1.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.3.4 (latest) — 2017-12-25
- 0.3.3 — 2017-12-25
- 0.3.2 — 2017-12-15
- 0.3.1 — 2017-12-12
- 0.3.0 — 2017-12-12
- 0.2.0 — 2017-12-06
- 0.1.0 — 2017-11-15

## README

# Dynamin

Dynamin can minimize(i.e. set to `1`) the read and write capacity units of Amazon DynamoDB tables and its indexes.

## Installation
```
$ npm install -g dynamin
```

## Usage
Before using dynamin, you need to set AWS credentials and region in some ways:

- `~/.aws/credentials`
- `~/.aws/config`
- Environment variables
  - `AWS_ACCESS_KEY_ID`
  - `AWS_SECRET_ACCESS_KEY`
  - `AWS_DEFAULT_REGION`


```
$ dynamin --help
Options:
  --help         Show help                                             [boolean]
  --version      Show version number                                   [boolean]
  -t, --table    Table name                                             [string]
  --tags         Lists of tags (keys and values)                         [array]
  --restore      Restores capacity units                               [boolean]
  -r, --region   AWS region                                             [string]
  -p, --profile  Profile name in your credential file                   [string]
```

## Example
Minimize a table.

```
$ dynamin -t users
```

Minimize tables tagged with the specified keys and values.  
Dynamin follows the tag filter syntax of [Resource Groups Tagging API](http://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html#resourcegrouptagging-GetResources-request-TagFilters).  
So the following minimizes tables tagged with `(stage=dev or stage=test) and (type=web)`.

```
$ dynamin --tags key=stage,values=dev,test key=type,values=web
```

Capacity unit values will be stored in a JSON file located in `~/.config/configstore/dynamin.json`.  
You can restore the values by the following command.

```
$ dynamin --restore
```

---
_Source: https://npm.io/package/dynamin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
