# awsesbulk

> Bulk indexing command line tool for AWS ElasticSearch

Latest version **1.1.0** (published 2022-03-22) · GNU license · 0 weekly downloads

## Install

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

Provides the command `awsesbulk`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-03-22 |
| First published | 2021-10-28 |
| Weekly downloads | 0 |
| License | GNU |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 40.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | ShmuelGutman |
| Maintainers | hozalito |
| Keywords | elasticsearch, cli, command line tool, aws es |

## Links

- npm: https://www.npmjs.com/package/awsesbulk
- Repository: https://github.com/shmuelgutman/awsesbulk
- Homepage: https://github.com/shmuelgutman/awsesbulk#readme
- Issues: https://github.com/shmuelgutman/awsesbulk/issues
- npm.io page: https://npm.io/package/awsesbulk

## Dependencies (6)

- [split2](https://npm.io/package/split2.md) ^4.1.0
- [throttle](https://npm.io/package/throttle.md) ^1.0.3
- [commander](https://npm.io/package/commander.md) ^8.3.0
- [csv-parse](https://npm.io/package/csv-parse.md) ^4.16.3
- [aws-elasticsearch-js](https://npm.io/package/aws-elasticsearch-js.md) ^1.0.3
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) ~7.13.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

- 1.1.0 (latest) — 2022-03-22
- 1.0.4 — 2021-10-31
- 1.0.3 — 2021-10-31
- 1.0.2 — 2021-10-31
- 1.0.1 — 2021-10-28
- 1.0.0 — 2021-10-28

## README

# awsesbulk
Bulk indexing command line tool for AWS ElasticSearch/Opensearch

This is a simple wrapper around elasticsearch [Bulk API](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html).  
It reads the input data from the stdin and hence, can be easily utilized the pipe `|` pattern.

If your aws elasticsearch domain is configured with IAM access policy, this tool also properly sign the request for you.
The credentials are calculated the same way it works in AWS-SDK.

Installation  
`npm i -g awsesbulk`

The input data can be csv-formatted or using a newline delimited JSON (NDJSON).

CSV:  
```bash
cat some_very_big_file.csv | awsesbulk --endpoint $ecsendpoint --index $indexname --region us-east-1 --csv
```  
NDJSON:  
```bash
echo '{"foo": "bar"}\n{"foo1":"bar1"}\n' | awsesbulk --endpoint $ecsendpoint --index $indexname --region us-east-1
```

Use the `--help` to view additional options

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