es-aws-iam-http-connector

1.0.0 • Public • Published

es-aws-iam-http-connector

This http connector extends Elasticsearch-js client to allow you to use it against your AWS ES domains that are secured via AWS IAM-based access policies.

This allows you to lock down your AWS ES domain - no need for IP-based access policies, and very granular security.

Example

See example/ping.js.

Credentials

Local file

Stored in your profile's ~/.aws/credentials file:

aws: {
  credentials: new AWS.SharedIniFileCredentials({profile:'default'})
}

From environment

For example, IAM instance profiles or AWS Lambda:

aws: {
  credentials: new AWS.EnvironmentCredentials('AWS')
}

Package Sidebar

Install

npm i es-aws-iam-http-connector

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • petemounce