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: README.md
+29-3Lines changed: 29 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,11 @@ serverless-dynamodb-local
7
7
8
8
## This Plugin Requires
9
9
* serverless@^1
10
-
* Java Runtime Engine (JRE) version 6.x or newer
10
+
* Java Runtime Engine (JRE) version 6.x or newer_OR_ docker CLI client
11
11
12
12
## Features
13
-
* Install DynamoDB Local
13
+
* Install DynamoDB Local Java program
14
+
* Run DynamoDB Local as Java program on the local host or in docker container
14
15
* Start DynamoDB Local with all the parameters supported (e.g port, inMemory, sharedDb)
15
16
* Table Creation for DynamoDB Local
16
17
@@ -24,7 +25,7 @@ plugins:
24
25
```
25
26
26
27
## Using the Plugin
27
-
1) Install DynamoDB Local
28
+
1) Install DynamoDB Local (unless using docker setup, see below)
28
29
`sls dynamodb install`
29
30
30
31
2) Add DynamoDB Resource definitions to your Serverless configuration, as defined here: https://serverless.com/framework/docs/providers/aws/guide/resources/#configuration
@@ -36,11 +37,16 @@ plugins:
36
37
Note: Read the detailed section for more information on advanced options and configurations. Open a browser and go to the url http://localhost:8000/shell to access the web shell for dynamodb local.
37
38
38
39
## Install: sls dynamodb install
40
+
This installs the Java program locally. If using docker, this step is not required.
41
+
39
42
To remove the installed dynamodb local, run:
40
43
`sls dynamodb remove`
41
44
Note: This is useful if the sls dynamodb install failed in between to completely remove and install a new copy of DynamoDB local.
42
45
43
46
## Start: sls dynamodb start
47
+
This starts the DynamoDB Local instance, either as a local Java program or, if the `--docker` flag is set,
48
+
by running it within a docker container. The default is to run it as a local Java program.
49
+
44
50
All CLI options are optional:
45
51
46
52
```
@@ -57,6 +63,8 @@ All CLI options are optional:
57
63
--migrate -m After starting DynamoDB local, create DynamoDB tables from the Serverless configuration.
58
64
--seed -s After starting and migrating dynamodb local, injects seed data into your tables. The --seed option determines which data categories to onload.
59
65
--convertEmptyValues -e Set to true if you would like the document client to convert empty values (0-length strings, binary buffers, and sets) to be converted to NULL types when persisting to DynamoDB.
66
+
--docker Run DynamoDB inside docker container instead of as a local Java program
0 commit comments