dynamodb-to-elasticsearch | Process DynamoDB Steams and INDEX , REMOVE , MODIFY
kandi X-RAY | dynamodb-to-elasticsearch Summary
kandi X-RAY | dynamodb-to-elasticsearch Summary
This package allow you to easily ZIP a Lambda function and start processing DynamoDB Streams in order to index your DynamoDB objects in ElasticSearch.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handler for Lambda function
- Recursively deserialize a value node
- Insert a document into DynamoDB
- Modify a record
- Generate a unique id from a record
- Remove a document from Elasticsearch
- Get table name from source ARN
- Convert s to int or float
- Unmarshal a Json representation
dynamodb-to-elasticsearch Key Features
dynamodb-to-elasticsearch Examples and Code Snippets
Community Discussions
Trending Discussions on dynamodb-to-elasticsearch
QUESTION
I'm trying to stream data from DynamoDB to ElasticSearch. I've checked the documentation by AWS + some other sources online but I'm stuck on a security issue. So I'm using a lambda function, the process of retrieving data from DynamoDB is fine, but then when I try to write back to ElasticSearch I get an error:
"no permissions for [indices:data/write/bulk] and User [name=arn:aws:iam::account number:role/dynamodb_to_es, backend_roles=[arn:aws:iam::account number:role/dynamodb_to_es], requestedTenant=null]"
This is my Lambda function. I realized it would always fail because of the "_bulk" extension. Thank you!!
My Lambda function: https://github.com/YassineRjl/Lambda-Func---DynamoDB-to-ElasticSearch/blob/master/lambda_func.py
...ANSWER
Answered 2020-Apr-23 at 11:07I found the solution. During the creation of the ES instance, make sure to unselect "fine-grained access control" & avoid VPC for the sake of Https, then on the roles, create a role on IAM and copy-paste the ARN in the ES dashboard during the instance setup
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dynamodb-to-elasticsearch
AWS_BUCKET_CODE: Where your Lambda function will go in AWS S3
IAM_ROLE: The IAM role you created for the Lambda function to run with
ENV: The environment you're running: DEV, QA, PROD, STAGE, ... This is used to pull the correct config file from S3
PROFILE (optional): The AWS profile to use to deploy. Will use default profile by default ...
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page