Skip to content

parthdesai93/http-aws-es-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS-ES Connector helper

'http-aws-es' package didn't work with the updated elastcisearch client.

This package assumes that you are using 'aws-sdk'.

To use, first upate the AWS config.

import AWS from 'aws-sdk';

AWS.config.update({
  credentials: new AWS.Credentials(accessKey, secretKey),
  region
});

import the client and pass the extended Connection class.

import { Client } from '@elastic/elasticsearch';
import { AwsConnector } from './connector';

const client = new Client({
  node,
  Connection: AwsConnector
});

//use this client to talk to AWS managed ES service.
export default client;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published