Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
dynamo-to-elasticsearch
Advanced tools
A NPM module that will dump all DynamoDB data to AWS ElasticSearch indices.
It takes entire table from DynamoDB and injects it to AWS Elasticsearch service. It may serve as a blueprint in AWS Lambda, however it is not based on streams, but on DynamoDB scan operation.
This module is an extended version of dynamodb-to-elasticsearch. The difference is that here you can set your own primaryKey
as well as index type. It is a separate repository as it breaks backward compatibility.
$ npm install dynamo-to-elasticsearch
module.exec (table, region, es_endpoint, es_data = { id: 'sortKey', type: 'datatype', indiceName: ''})
Parameter | Type | Description |
---|---|---|
table | string | Table name of dynamoDB whose data you want to dump in elastic-search. |
region | string | dynamodb table region |
es_endpoint | string | elastic-search endpoint |
es_data | object | |
es_data.id | string | The name of primaryKey field for DynamoDB table. It should be unique identifier for documents. By default it is set to sortKey . |
es_data.type | string | Name of class of objects, which document represents. By default it is set to datatype . |
es_data.indiceName | string | Index name of elastic-search on which you can perform query. |
const d2es = require('dynamodb-to-elasticsearch');
const table = 'table',
region = 'region',
es_endpoint = 'es_endpoint_value',
es_data = { id: 'sortKey', type: 'data', indiceName: 'candidates' }};
exports.handler = function(event, context, callback) {
d2es.exec(table, region, es_endpoint, es_data, (err, success) => {
if (err) {
callback(err, null);
} else {
callback(null, success);
}
});
}
MIT
FAQs
Module to dump DynamoDB data to ElasticSearch indices.
The npm package dynamo-to-elasticsearch receives a total of 1 weekly downloads. As such, dynamo-to-elasticsearch popularity was classified as not popular.
We found that dynamo-to-elasticsearch 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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.