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: typedb/README.md
+14-17Lines changed: 14 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,17 @@ TypeDB on LocalStack
3
3
4
4
This repo contains a [LocalStack Extension](https://github.com/localstack/localstack-extensions) that facilitates developing [TypeDB](https://typedb.com)-based applications locally.
5
5
6
+
After installing the extension, a TypeDB server instance will become available under `typedb.localhost.localstack.cloud:4566`, allowing you to create and manage TypeDB databases directly from your AWS applications running in LocalStack.
7
+
8
+
For example, you could create a microservice backed by a Lambda function that connects to a TypeDB database upon invocation. See [here](https://github.com/typedb-osi/typedb-localstack-demo) for a simple example application that makes use of this extension.
9
+
10
+
## Configuration
11
+
12
+
The following environment variables can be passed to the LocalStack container (make sure to prefix them with `LOCALSTACK_...` when using the `localstack start` CLI), to steer the behavior of the extension:
13
+
14
+
*`TYPEDB_FLAGS`: Additional user-defined command args to pass to the TypeDB container.
15
+
*`TYPEDB_HTTP2_PROXY`: Flag to enable/disable HTTP2 proxy for gRPC traffic (use this if you experience network issues, and use the HTTP variant of the TypeDB driver).
To install the extension into LocalStack in developer mode, you will need Python 3.13, and create a virtual environment in the extensions project.
24
-
25
-
In the newly generated project, simply run
34
+
Please refer to the docs [here](https://github.com/localstack/localstack-extensions?tab=readme-ov-file#start-localstack-with-the-extension) for instructions on how to start the extension in developer mode.
26
35
27
-
```bash
28
-
make install
29
-
```
36
+
## License
30
37
31
-
Then, to enable the extension for LocalStack, run
32
-
33
-
```bash
34
-
localstack extensions dev enable.
35
-
```
36
-
37
-
You can then start LocalStack with `EXTENSION_DEV_MODE=1` to load all enabled extensions:
38
-
39
-
```bash
40
-
EXTENSION_DEV_MODE=1 localstack start
41
-
```
38
+
The code in this repo is available under the Apache 2.0 license.
0 commit comments