npm.io
1.0.0 • Published 10 years ago

es-aws-iam-http-connector

Licence
MIT
Version
1.0.0
Deps
3
Vulns
2
Weekly
0

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')
}

Keywords