{"_id":"@charlieduong94/http-aws-es","_rev":"1-91ab0fca08929c89744b361e28231b92","name":"@charlieduong94/http-aws-es","dist-tags":{"latest":"6.0.0"},"versions":{"6.0.0":{"name":"@charlieduong94/http-aws-es","version":"6.0.0","description":"Use the elasticsearch-js client with Amazon ES","repository":{"type":"git","url":"git+https://github.com/TheDeveloper/http-aws-es.git"},"bugs":{"url":"https://github.com/TheDeveloper/http-aws-es/issues"},"keywords":["elasticsearch","elasticsearch-js","aws-es","aws","amazon","es","http","connector","extension","sign"],"main":"connector.js","peerDependencies":{"aws-sdk":"^2.138.0","elasticsearch":"^15.0.0"},"devDependencies":{"aws-sdk":"^2.138.0","browserify":"^14.5.0","chai":"^4.1.2","elasticsearch":"^15.0.0","eslint":"^4.9.0","express":"^4.16.2","minimist":"^1.2.0","mocha":"^4.0.1","nyc":"^11.2.1","puppeteer":"^0.12.0","sinon":"^4.0.0"},"scripts":{"test":"nyc --all mocha","integration-test":"mocha test/integration","posttest":"npm run lint","lint":"eslint connector.js src"},"browser":{"./src/node.js":"./src/xhr.js"},"author":{"name":"Geoff Wagstaff","email":"geoff@gosquared.com"},"license":"MIT","gitHead":"31b0d5e16257e69ecc0ccc0d90383da63a85c40c","homepage":"https://github.com/TheDeveloper/http-aws-es#readme","_id":"@charlieduong94/http-aws-es@6.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.2.0","_npmUser":{"name":"charlieduong94","email":"charlieduong94@gmail.com"},"dist":{"integrity":"sha512-6pgwUMrTzteUUaPGC2dNeHJBubHcfUMYX7cLe8V2Bgc9sCH5YH/UKuy+9877nJ1kI/lrWMWbexzGKw/Y/oqkiQ==","shasum":"87f703b139f582eec32d4ccc9ce440ec29ee4bf0","tarball":"https://registry.npmjs.org/@charlieduong94/http-aws-es/-/http-aws-es-6.0.0.tgz","fileCount":16,"unpackedSize":16341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUcw8CRA9TVsSAnZWagAAWfoP/RvCHH4aiM/W0jy2JWBj\nIoioUVlrU+LI3JJ9uANhsU9ijQxJUCtWX+SVFSk/ZD/7R/DVRepvglgWLUyg\nLKUWXM1fFFAhffKECQ4+6PhYU5trI48vNFU0a3MFKgpcATngrvUGrvFBtKGl\n0AKHruzhxIJc4tVl4mQSmEOTid2Mh6LbvkfL4keifKIJACtWR6UW1zhGURWZ\nUjCujc5GxBppa0LDeis6KWlhgTspHzDqsCbIWjJh553hn0IELb7pczQfIByi\nU8EwBZF++zf6PhoWZLKHnI6KfL030lHMm6r2regUc/hCBkfoiUgmZwkxST7h\nubFyeSEyN6r3kYpKGd/7EhOEvYsm3JXM8fW0TCfrHH4wQWRXOxdCYCW8LcwQ\n2m0rdvP10cQuIt1A+trdiqAy5uk2I4Y3Iltps5eF+r2NGZci5hjiy2/fvbiX\n9NicMmeFObIk0B91sQoT1hTzuSm6UnjH+9qvosUNsX9OoBm+YyWLNd0cRMaV\nbj+Crtkt6JuqTOH81eQMjfUYQmTD3AMpT/rCdURNliwnjTAH3bgM0QJtb01/\niP8HThJR3xtkyi16K1CXkh0mlKhZ8djhpQXzoR8Avx//hprSHhxYbJzj6ea9\nnkTIqneVM2fZtHwdZ/alFTNOKBNKjGPve72AnDqfEfNR8L8Yupi6K8qlogEa\n09Qv\r\n=m7bb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCA/YaOqD0IW+weqHP0fxRS6+vklBVJXOl4j5RJiDOugAIgP/jHnIq0vf5Q3wOyccNNdMVBV9kXi/L4+Q/r2ySBwe8="}]},"maintainers":[{"name":"charlieduong94","email":"charlieduong94@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-aws-es_6.0.0_1548864571652_0.8338000468956148"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-30T16:09:31.468Z","6.0.0":"2019-01-30T16:09:31.776Z","modified":"2022-04-04T22:32:24.316Z"},"maintainers":[{"name":"charlieduong94","email":"charlieduong94@gmail.com"}],"description":"Use the elasticsearch-js client with Amazon ES","homepage":"https://github.com/TheDeveloper/http-aws-es#readme","keywords":["elasticsearch","elasticsearch-js","aws-es","aws","amazon","es","http","connector","extension","sign"],"repository":{"type":"git","url":"git+https://github.com/TheDeveloper/http-aws-es.git"},"author":{"name":"Geoff Wagstaff","email":"geoff@gosquared.com"},"bugs":{"url":"https://github.com/TheDeveloper/http-aws-es/issues"},"license":"MIT","readme":"# Connection handler for Amazon ES [<img title=\"Version\" src=\"https://img.shields.io/npm/v/http-aws-es.svg?style=flat-square\" />](https://www.npmjs.org/package/http-aws-es)\nMakes [elasticsearch-js](https://github.com/elastic/elasticsearch-js) compatible with Amazon ES. It uses the aws-sdk to make signed requests to an Amazon ES endpoint.\n\n## Installation\n```bash\n# Install the connector, elasticsearch client and aws-sdk\nnpm install --save http-aws-es aws-sdk elasticsearch\n```\n\n## Usage\n```javascript\n// create an elasticsearch client for your Amazon ES\nlet es = require('elasticsearch').Client({\n  hosts: [ 'https://amazon-es-host.us-east-1.es.amazonaws.com' ],\n  connectionClass: require('http-aws-es')\n});\n```\n\n## Region + Credentials\nThe connector uses aws-sdk's default behaviour to obtain region + credentials from your environment. If you would like to set these manually, you can set them on aws-sdk:\n\n```javascript\nlet AWS = require('aws-sdk');\nAWS.config.update({\n  credentials: new AWS.Credentials(accessKeyId, secretAccessKey),\n  region: 'us-east-1'\n});\n```\n\n## Options\n```javascript\nlet options = {\n  hosts: [], // array of amazon es hosts (required)\n  connectionClass: require('http-aws-es'), // use this connector (required)\n  awsConfig: new AWS.Config({ region }), // set an aws config e.g. for multiple clients to different regions\n  httpOptions: {} // set httpOptions on aws-sdk's request. default to aws-sdk's config.httpOptions\n};\nlet es = require('elasticsearch').Client(options);\n```\n\n## Test\n```bash\nnpm test\n# test against a real endpoint\nAWS_PROFILE=your-profile npm run integration-test -- --endpoint https://amazon-es-host.us-east-1.es.amazonaws.com --region us-east-1\n```\n","readmeFilename":"README.md"}