{"_id":"@cheftonic/dynamodb-to-elasticsearch-offline","_rev":"2-3826fe0be369edcc0a31e68605a0a8e9","name":"@cheftonic/dynamodb-to-elasticsearch-offline","dist-tags":{"latest":"0.3.1"},"versions":{"0.3.0":{"name":"@cheftonic/dynamodb-to-elasticsearch-offline","version":"0.3.0","description":"Module to dump DynamoDB data to ElasticSearch indices.","repository":{"type":"git","url":"git+https://github.com/Cheftonic/dynamodb-to-elasticsearch.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["dynamodb-to-elastic-search","dynamodb-to-elasticsearch","aws","dynamodb","elasticsearch","elastic-search"],"author":{"name":"Carlos Delgado"},"license":"MIT","dependencies":{"aws-sdk":"^2.122.0","elasticsearch":"^13.3.1","http-aws-es":"^3.1.0","lodash":"^4.17.4","when":"^3.7.8"},"bugs":{"url":"https://github.com/Cheftonic/dynamodb-to-elasticsearch/issues"},"homepage":"https://github.com/Cheftonic/dynamodb-to-elasticsearch#readme","gitHead":"94435d622eee73d79e9199a7e1f711fdde1bc499","_id":"@cheftonic/dynamodb-to-elasticsearch-offline@0.3.0","_nodeVersion":"8.10.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-MiDnyNDzMtVfRZ1QrjTNT678luZ0FCcDMA3QJ2djEHCpL6wLXsAM5t/l0YRmSGdtf9pQbs7BCagtwpS3Xak10A==","shasum":"2362ffe48d199ff32a78549ed6ade38adc6f9cd0","tarball":"https://registry.npmjs.org/@cheftonic/dynamodb-to-elasticsearch-offline/-/dynamodb-to-elasticsearch-offline-0.3.0.tgz","fileCount":6,"unpackedSize":9574,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZawbCRA9TVsSAnZWagAAPggP/R7E+wDyvSaB1zuXK6oQ\noJBaDm0Sl5/8pIHQtWEMO5fqstjQ/k00ZAK7jDByJaTYZstrYw6m95nX4Us/\ne7MD22U7zEWu3Ydw3UCO0jqTXNUw+Z82lyqQiZSzp4QCeiPSiOTyAxWlFwNS\nCIOA99ZqGx9cwHLwqCSYZMWYlDDFq1w4Kfz6yODXvKOetRH7KK+qEk0n74x+\nfVf9pqTZbmW/7XIRQF8fQO2sYiPdqLgVpYCjGxI8N9VECR0Q5xqzyppBqdaQ\nVN/5awbFQkP+fF1Lckx1g3bXahJeOREZ8AgBb0mUIkKdNjn1iY+N5QpV4wCm\nBt+i/WJa3YlmoiQW+AfVNOepZ1URKbtpjYhN8HsZJaVTaT/jToPFExuDJ44M\n69+t9rAmoLMMcF/YxYcOI39giwpKrHBBYj7JYHzKL9g9jZFuMCha/EA6TfyW\ndQAh/1zNbWpvtJIKlCLKlYaIdE54+xs/TWiHx38POX1tXxInky/9OCXiN+Me\n7MTPggdYafwHEL6VCNI5vEyTh/zhZ/d3KTqBz8GXRBxoMin4R43I8KtO2t92\n9QYJFNfspTTEBfoKZ74jsOnKr4glehyfchrNDgQfex1jy/QA3s2jh3nzKMa1\nnKQ5cfh0iV46L7Wu1uEIXOAb20Tjy3wizsWZhalIzfLR2evnLQ3RkV26IlXO\nKyfT\r\n=tC/A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDc5DcxcU7+dBCY73bwnojDdjmdWU5dIAHYXuZ6K2J3NgIhALrhVcajnF9sk5AU2FvNpM7hnfmCWrF2DlVQ1HwPjQjy"}]},"maintainers":[{"name":"andresddg","email":"andresddg@gmail.com"},{"name":"cdelgado","email":"carlos.delgado@proyecti.es"}],"_npmUser":{"name":"cdelgado","email":"carlos.delgado@proyecti.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dynamodb-to-elasticsearch-offline_0.3.0_1550167066821_0.23944985007841835"},"_hasShrinkwrap":false},"0.3.1":{"name":"@cheftonic/dynamodb-to-elasticsearch-offline","version":"0.3.1","description":"Module to dump DynamoDB data to ElasticSearch indexes.","repository":{"type":"git","url":"git+https://github.com/Cheftonic/dynamodb-to-elasticsearch.git"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["dynamodb-to-elastic-search","dynamodb-to-elasticsearch","aws","dynamodb","elasticsearch","elastic-search"],"author":{"name":"Carlos Delgado"},"license":"MIT","dependencies":{"aws-sdk":"^2.403.0","elasticsearch":"^15.4.1","http-aws-es":"^6.0.0","lodash":"^4.17.11","when":"^3.7.8"},"bugs":{"url":"https://github.com/Cheftonic/dynamodb-to-elasticsearch/issues"},"homepage":"https://github.com/Cheftonic/dynamodb-to-elasticsearch#readme","gitHead":"9a7f3f7a1014771f1e21b40ed3c1960e790600ca","_id":"@cheftonic/dynamodb-to-elasticsearch-offline@0.3.1","_nodeVersion":"8.10.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-G6s4zhc2wneg3nbCTCe5fr0Ng1EC46v1j7qXl46sufzfsvgeSS1mleD/lZlDE6IhrNRHxbEvBwt+GUEeGZdfVA==","shasum":"9cadb02ab893a6e64ca8e1e826ef403af7b10a8e","tarball":"https://registry.npmjs.org/@cheftonic/dynamodb-to-elasticsearch-offline/-/dynamodb-to-elasticsearch-offline-0.3.1.tgz","fileCount":7,"unpackedSize":10760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZohjCRA9TVsSAnZWagAAzfUQAIkwMSEtE9AikKSZ8tjt\nml36Lzz17zeG7EJcbdWiNBvc9O0OUw9qvCTKtnbB1IX1WiDWz4eTb08Ot0s2\nSqL+G4uatFKfP5yxRjS9og661yAoH3a3ZCINF5l2/CTz7phBy1uv7Drqxbgb\nfiNPi4BsHO3/0H1ee3XfRw7MM/EQUusZYc6aHNbx7sK6ee119fnRw0COGATA\nAqk3lDBG+YIqkj+F3X6PB9Annr0x2tBDCQAWK516GddWZSmkgKbz6wr0vINu\ndZ6xAX+1PF5dEwduLr2+8uXlPa/0lNjgdV2/5XZ+wNdxvvcsdkJprgeBOLiP\nhKeIgNQdvyUxntjbkJB+Z0mvikulTdS9AizW2UUjXhPTh4lNDO+yK1G8WTW9\ngZUMHMVim7s199KerXfEk3/+3vy5xkCpv6DViZCZOX1PTMUYiPDyfxGuapsp\nYIvyENz0BRjablU/otbCYaGPAlroA5bVcjHukh5+03Vrloq2xM8bNftTXev7\nZ0X2ekb8X2pbMVNICO3d1QTbruSsPALA7HVoBu2GTSzosqhT3sEbu/bkr6/R\n8Rceqnr9jdVJPjJCEnZASTWKZr4dOIhod0b1/rdlU7O4MSl+Y9geWus7rwxR\nL9NtFhC1lgCUrwztuGcoMAd7uJ2Aq1MjfH1NcA+XIr34oNUGN/DZttwQKhaN\nMEHX\r\n=+cNw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUMSbH7yQ0AqJVykc6nJR8Ujw4tx84bnNRxXZpME0rMwIgGugnwPT2+K6xyrwPo5tjlq+FAmlcr/6TwbCDSOtExzg="}]},"maintainers":[{"name":"andresddg","email":"andresddg@gmail.com"},{"name":"cdelgado","email":"carlos.delgado@proyecti.es"}],"_npmUser":{"name":"cdelgado","email":"carlos.delgado@proyecti.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dynamodb-to-elasticsearch-offline_0.3.1_1550223458812_0.9795111302999295"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-14T17:57:46.708Z","0.3.0":"2019-02-14T17:57:46.951Z","modified":"2022-04-04T22:37:32.197Z","0.3.1":"2019-02-15T09:37:38.975Z"},"maintainers":[{"name":"andresddg","email":"andresddg@gmail.com"},{"name":"cdelgado","email":"carlos.delgado@proyecti.es"}],"description":"Module to dump DynamoDB data to ElasticSearch indexes.","homepage":"https://github.com/Cheftonic/dynamodb-to-elasticsearch#readme","keywords":["dynamodb-to-elastic-search","dynamodb-to-elasticsearch","aws","dynamodb","elasticsearch","elastic-search"],"repository":{"type":"git","url":"git+https://github.com/Cheftonic/dynamodb-to-elasticsearch.git"},"author":{"name":"Carlos Delgado"},"bugs":{"url":"https://github.com/Cheftonic/dynamodb-to-elasticsearch/issues"},"license":"MIT","readme":"# DynamoDB-to-ElasticSearch\n\nA NPM module that will dump all DynamoDB data to AWS ElasticSearch indices.\n\n## What this does\n\nThere's no blueprint in AWS Lambda that allows to dump DynamoDB data into ElasticSearch. This module will facilitate exactly that.\n\n---\n\n## Installation\n\n```sh\n$ npm install dynamodb-to-elasticsearch\n```\n\n## [Guide to configure AWS to use this blueprint](https://aws.amazon.com/blogs/compute/indexing-amazon-dynamodb-content-with-amazon-elasticsearch-service-using-aws-lambda)\n\n## Documentation\n\n`module.exec (table, region, es_endpoint, es_data = { id: 'sortKey', type: 'datatype', indiceName: ''})`\n\n| Parameter | Type | Description\n| ------ | ------ | ------ |\n| table | string | Table name of dynamoDB whose data you want to dump in elastic-search.\n| indiceName | string | indice name of elastic-search on which you can perform query.\n| region | string | dynamodb table region\n| es_endpoint | string | elastic-search endpoint\n| es_data | object |\n| es_data.id | object | The name of `primaryKey` field for DynamoDB table. It should be unique identifier for documents. By default it is set to `sortKey`. \n| es_data.type | object | Name of class of objects, which document represents. By default it is set to `datatype`.\n| es_data.indiceName | object | Index name of elastic-search on which you can perform query.\n\n### Working locally\n\nWhen working on a Dynamodb running on localhost, make sure the `IS_OFFLINE` environment varible is set to `true`.\nThe default port will be `8000` but it can be overriden by `LOCAL_DYNAMODB_PORT` environment variable.\n\n## Example\n\n```javascript\nconst d2es = require('dynamodb-to-elasticsearch');\n\nconst table = 'table',\n  region = 'region',\n  es_endpoint = 'es_endpoint_value',\n  es_data = { id: 'sortKey', type: 'data', indiceName: 'candidates' }};\n\nexports.handler = function(event, context, callback) {\n  d2es.exec(table, region, es_endpoint, es_data, (err, success) => {\n    if (err) {\n      callback(err, null);\n    } else {\n      callback(null, success);\n    }\n  });\n}\n\n```\n\nLicense\n----\nMIT\n","readmeFilename":"README.md"}