Connecting to an Amazon Neptune cluster
After creating a Neptune cluster, you must set up network access so that your applications can reach the cluster endpoint. The following sections describe the network connectivity options. For more information about querying your data after you connect, see Accessing graph data.
Network connectivity options
An Amazon Neptune DB cluster can only be created in an Amazon Virtual Private Cloud (Amazon VPC). Its endpoints are accessible only within that VPC unless you enable and set up Neptune public endpoints for the DB cluster.
You can set up network access to your Neptune DB cluster in its VPC in several ways:
Verify your connection
After you set up network access, you can verify that your connection works by calling the instance status endpoint. A successful response confirms that your client can reach the Neptune cluster.
A healthy cluster returns a JSON response that includes
"status": "healthy". For example:
{ "status": "healthy", "startTime": "Thu Aug 24 21:07:13 UTC 2023", "dbEngineVersion": "1.3.1.0.R1", "role": "writer", "dfeQueryEngine": "viaQueryHint", "gremlin": { "version": "tinkerpop-3.7.2" }, "sparql": { "version": "sparql-1.1" }, "opencypher": { "version": "Neptune-9.0.20190305-1.0" }, "labMode": { ... }, "features": { ... }, "settings": { ... } }
If you cannot reach the endpoint, verify that your network configuration
allows traffic on port 8182 (or your configured port) and that your security
group rules permit inbound connections from your client. For more information,
see Securing access to Neptune.
For help setting up the AWS CLI, SDKs, or curl, see
Using command-line tools.