Captator
ATApache TinkerPop
•Created by Captator on 4/22/2025 in #questions
Neptune Local Development Access Methods
Question for the Neptune folks - I'm trying to cobble together ergonomic local access to our development cluster.
Here's what I've got that works:
- SSM session running via an EC2 bastion host, which makes the targeted cluster (using
AWS-StartPortForwardingSessionToRemoteHost
) available at localhost:8182
- A mapping in /etc/hosts
resolving <my_cluster_url>
to localhost
- In combination, these enable me to use the same SigV4Auth signing approach (with headers) that works from a within-VPC context to access the cluster from a Python script/Jupyter notebook
- https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-python.html
I have been trying to come up with an approach for handling the /etc/hosts
edit that doesn't require sudo
access or changes to system files. In principle, it should be possible to insert custom DNS resolution into the Python script, but I'm having no joy. Has anyone else previously hit and overcome this snag in this fashion/another way?10 replies