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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ All the above options can be added to s-project.json to set default configuratio
67
67
To remove the installed dynamodb local, run:
68
68
`sls dynamodb remove`
69
69
70
-
## Manage migrations
70
+
## Manage Migrations
71
71
72
72
Start dynamodb local instance in another window before running the following commands. To store your dynamodb migration templates do the following configuration (If not specified default directory <project-root>/dynamodb is used)
73
73
@@ -84,14 +84,17 @@ Start dynamodb local instance in another window before running the following com
84
84
```
85
85
86
86
To create new migration template with the given name, run:
87
-
`sls dynamodb create -n <your-table-name>`
87
+
`sls dynamodb create -n <migration-name>`
88
88
89
89
To execute a migration template with the given name, run:
90
-
`sls dynamodb execute -n <your-table-name>`
90
+
`sls dynamodb execute -n <migration-file-name>`
91
91
92
92
To execute all migration templates, run:
93
93
`sls dynamodb executeAll`
94
94
95
+
Note: Optionally to execute/executeAll migrations on remote dynamodb, use -r <region> and -s <stage> parameters
To create table & run the seeds in your project root, run:
167
-
`sls dynamodb table -c`
168
-
169
169
If you need to prefix_<your-table-name>_suffix, you can configure the values accordingly. This is usefull when you have multiple stages which needs multiple database tables
170
170
171
171
Optionally if you want to execute all migrations on dynamodb starts, use the argument -m or add the "migration": true inside s-project.json as shown below
@@ -180,7 +180,7 @@ Optionally if you want to execute all migrations on dynamodb starts, use the arg
180
180
}
181
181
```
182
182
183
-
## Accessing dynamodb local from your code
183
+
## Using in code
184
184
185
185
You need to add the following parameters to the AWS SDK dynamodb constructor
0 commit comments