
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@foko/http-aws-es
Advanced tools
Makes elasticsearch-js compatible with Amazon ES. It 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:
var es = require('elasticsearch').Client({
hosts: 'https://amazon-es-host.us-east-1.es.amazonaws.com',
connectionClass: require('http-aws-es'),
amazonES: {
region: 'us-east-1',
accessKey: 'AKID',
secretKey: 'secret'
}
});
Pre-configured credentials can be fetched automatically (through AWS's getCredentials function) by specifying getCredentials: true in the amazonES object in place of accessKey and secretKey.
Alternatively you can pass in your own AWS Credentials object. This is particularly useful if running on AWS Lambda, since the appropriate credentials are already in the environment.
var myCredentials = new AWS.EnvironmentCredentials('AWS'); // Lambda provided credentials
var es = require('elasticsearch').Client({
hosts: 'https://amazon-es-host.us-east-1.es.amazonaws.com',
connectionClass: require('http-aws-es'),
amazonES: {
region: "us-east-1",
credentials: myCredentials
}
});
FAQs
Use the elasticsearch-js client with Amazon ES
The npm package @foko/http-aws-es receives a total of 8 weekly downloads. As such, @foko/http-aws-es popularity was classified as not popular.
We found that @foko/http-aws-es demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.