New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

aws-lambda-elasticsearch

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-lambda-elasticsearch

Access an Elasticsearch service from AWS Lambda ported from http-aws-es. Make aws-sdk a dev dependency and changes how credentials are accessed.

latest
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

HttpAmazonESConnector

  • Extends: HttpConnector
  • See: https://github.com/elastic/elasticsearch-js/blob/master/src/lib/connectors/http.js

A Connection handler for Amazon ES.

Uses the aws-sdk to make signed requests to an Amazon ES endpoint. Define the Amazon ES config and the connection handler in the client configuration.

Ported from: https://www.npmjs.com/package/http-aws-es

ParamTypeDescription
clientObjectThe options object passed to the Client class
client.connectionClassClassThe new connection class aws-lambda-elasticsearch
[client.amazonConfig]ObjectSpecify Amazon specific configuration
[client.amazonConfig.region]StringThe region of the search cluster. Falls back to process.env.AWS_REGION or 'us-east-1'

Example

var es = require('elasticsearch').Client({
 hosts: 'https://amazon-es-host.us-east-1.es.amazonaws.com',
 connectionClass: require('aws-lambda-elasticsearch'),
 amazonConfig: {
   region: 'us-east-1'
 }
});

Keywords

aws

FAQs

Package last updated on 19 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts