Gremlin python connection to Neptune via IAM and WS
Does anyone know how to connect gremlin-python with websocket and IAM authorization to AWS Neptune. Right now I'm just using Websocket but without Auth, so is there a way to implement it?
Solution:Jump to solution
Here are some examples I found from the Neptune documentation. https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-python.html and https://docs.aws.amazon.com/neptune/latest/userguide/lambda-functions-examples.html#lambda-functions-examples-python . Both seem to be using the boto library to do the signing.
Using Python to connect to a Neptune DB instance - Amazon Neptune
Steps for connecting to Neptune using Python.
AWS Lambda function examples for Amazon Neptune - Amazon Neptune
The following example AWS Lambda functions, written in Java, JavaScript and Python, illustrate upserting a single vertex with a randomly generated ID using the fold().coalesce().unfold() idiom.
2 Replies
Solution
Here are some examples I found from the Neptune documentation. https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-python.html and https://docs.aws.amazon.com/neptune/latest/userguide/lambda-functions-examples.html#lambda-functions-examples-python . Both seem to be using the boto library to do the signing.
Using Python to connect to a Neptune DB instance - Amazon Neptune
Steps for connecting to Neptune using Python.
AWS Lambda function examples for Amazon Neptune - Amazon Neptune
The following example AWS Lambda functions, written in Java, JavaScript and Python, illustrate upserting a single vertex with a randomly generated ID using the fold().coalesce().unfold() idiom.
it works, but the docs doesn't have all information, add-on about the documentation, if we use a lambda, we need to add to the role the basic policies of Neptune as well be inside in the same VPC with the SG on the port 8182.