You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/neptune.md
+37-32Lines changed: 37 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
---
2
2
title: "Neptune"
3
-
linkTitle: "Neptune"
4
-
description: >
5
-
Get started with Neptune on LocalStack
3
+
description: Get started with Neptune on LocalStack
6
4
tags: ["Ultimate"]
7
5
---
8
6
@@ -13,7 +11,7 @@ It is designed for storing and querying highly connected data for applications t
13
11
Neptune supports popular graph query languages like Gremlin and SPARQL, making it compatible with a wide range of graph applications and tools.
14
12
15
13
LocalStack allows you to use the Neptune APIs in your local environment to support both property graph and RDF graph models.
16
-
The supported APIs are available on our [API coverage page]({{< ref "coverage_neptune" >}}), which provides information on the extent of Neptune's integration with LocalStack.
14
+
The supported APIs are available on our [API coverage page](), which provides information on the extent of Neptune's integration with LocalStack.
17
15
18
16
The following versions of Neptune engine are supported by LocalStack:
19
17
@@ -52,11 +50,11 @@ We will demonstrate the following with AWS CLI & Python:
52
50
To create a Neptune cluster you can use the [`CreateDBCluster`](https://docs.aws.amazon.com/neptune/latest/userguide/api-clusters.html#CreateDBCluster) API.
53
51
Run the following command to create a Neptune cluster:
54
52
55
-
{{< command >}}
56
-
$ awslocal neptune create-db-cluster \
53
+
```bash
54
+
awslocal neptune create-db-cluster \
57
55
--engine neptune \
58
56
--db-cluster-identifier my-neptune-db
59
-
{{< / command >}}
57
+
```
60
58
61
59
You should see the following output:
62
60
@@ -77,13 +75,13 @@ You should see the following output:
77
75
To add an instance you can use the [`CreateDBInstance`](https://docs.aws.amazon.com/neptune/latest/userguide/api-instances.html#CreateDBInstance) API.
78
76
Run the following command to create a Neptune instance:
79
77
80
-
{{< command >}}
81
-
$ awslocal neptune create-db-instance \
78
+
```bash
79
+
awslocal neptune create-db-instance \
82
80
--db-cluster-identifier my-neptune-db \
83
81
--db-instance-identifier my-neptune-instance \
84
82
--engine neptune \
85
83
--db-instance-class db.t3.medium
86
-
{{< / command >}}
84
+
```
87
85
88
86
In LocalStack the `Endpoint` for the `DBCluster` and the `Endpoint.Address` of the `DBInstance` will be the same and can be used to connect to the graph database.
89
87
@@ -159,37 +157,44 @@ When LocalStack starts with [IAM enforcement enabled]({{< ref "/user-guide/secur
159
157
160
158
Start LocalStack with `LOCALSTACK_ENFORCE_IAM=1` to create a Neptune cluster with IAM DB authentication enabled.
161
159
162
-
{{< command >}}
163
-
$ LOCALSTACK_ENFORCE_IAM=1 localstack start
164
-
{{< /command >}}
160
+
```bash
161
+
LOCALSTACK_ENFORCE_IAM=1 localstack start
162
+
```
165
163
166
164
You can then create a cluster.
167
165
168
-
{{< command >}}
169
-
$ awslocal neptune create-db-cluster \
166
+
```bash
167
+
awslocal neptune create-db-cluster \
170
168
--engine neptune \
171
169
--db-cluster-identifier myneptune-db \
172
170
--enable-iam-database-authentication
173
-
{{< /command >}}
171
+
```
174
172
175
173
After the cluster is deployed, the Gremlin server will reject unsigned queries.
0 commit comments