Skip to content

Instantly share code, notes, and snippets.

@ssullivan
Created November 12, 2019 01:03
Show Gist options
  • Select an option

  • Save ssullivan/83d474bc7257d01245b686392643c9b3 to your computer and use it in GitHub Desktop.

Select an option

Save ssullivan/83d474bc7257d01245b686392643c9b3 to your computer and use it in GitHub Desktop.
AWS Neptune User Init Script
sudo yum install -y java-1.8.0-devel
sudo /usr/sbin/alternatives --config java
mkdir -p /opt/
wget https://archive.apache.org/dist/tinkerpop/3.4.1/apache-tinkerpop-gremlin-console-3.4.1-bin.zip
mv apache-tinkerpop-gremlin-console-3.4.1-bin.zip /opt/
unzip /opt/apache-tinkerpop-gremlin-console-3.4.1-bin.zip
cd apache-tinkerpop-gremlin-console-3.4.1 && wget https://www.amazontrust.com/repository/SFSRootCAG2.pem
cat <<EOF > /opt/apache-tinkerpop-gremlin-console-3.4.1
hosts: [your-neptune-endpoint]
port: 8182
connectionPool: { enableSsl: true, trustCertChainFile: "SFSRootCAG2.pem"}
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config: { serializeResultToString: true }}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment