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
@@ -33,11 +33,11 @@ module.exports = function (S) { // Always pass in the ServerlessPlugin Class
33
33
option: 'new',
34
34
shortcut: 'n',
35
35
description: 'Create a new table & seed template for the given table name, inside the directlry given in s-project.json.'
36
-
},{
36
+
},{
37
37
option: 'create',
38
38
shortcut: 'c',
39
39
description: 'Create dynamodb tables and run seeds'
40
-
}]
40
+
}]
41
41
});
42
42
S.addAction(this.remove.bind(this),{
43
43
handler: 'dynamodbRemove',
@@ -54,35 +54,39 @@ module.exports = function (S) { // Always pass in the ServerlessPlugin Class
54
54
option: 'port',
55
55
shortcut: 'p',
56
56
description: 'The port number that DynamoDB will use to communicate with your application. If you do not specify this option, the default port is 8000'
57
-
},{
57
+
},{
58
58
option: 'cors',
59
59
shortcut: 'r',
60
60
description: 'Enable CORS support (cross-origin resource sharing) for JavaScript. You must provide a comma-separated "allow" list of specific domains. The default setting for -cors is an asterisk (*), which allows public access.'
61
-
},{
61
+
},{
62
62
option: 'inMemory',
63
63
shortcut: 'm',
64
64
description: 'DynamoDB; will run in memory, instead of using a database file. When you stop DynamoDB;, none of the data will be saved. Note that you cannot specify both -dbPath and -inMemory at once.'
65
-
},{
65
+
},{
66
66
option: 'dbPath',
67
67
shortcut: 'd',
68
68
description: 'The directory where DynamoDB will write its database file. If you do not specify this option, the file will be written to the current directory. Note that you cannot specify both -dbPath and -inMemory at once. For the path, current working directory is <projectroot>/node_modules/serverless-dynamodb-local/dynamob. For example to create <projectroot>/node_modules/serverless-dynamodb-local/dynamob/<mypath> you should specify -d <mypath>/ or --dbPath <mypath>/ with a forwardslash at the end.'
69
-
},{
69
+
},{
70
70
option: 'sharedDb',
71
71
shortcut: 'h',
72
72
description: 'DynamoDB will use a single database file, instead of using separate files for each credential and region. If you specify -sharedDb, all DynamoDB clients will interact with the same set of tables regardless of their region and credential configuration.'
73
-
},{
73
+
},{
74
74
option: 'delayTransientStatuses',
75
75
shortcut: 't',
76
76
description: 'Causes DynamoDB to introduce delays for certain operations. DynamoDB can perform some tasks almost instantaneously, such as create/update/delete operations on tables and indexes; however, the actual DynamoDB service requires more time for these tasks. Setting this parameter helps DynamoDB simulate the behavior of the Amazon DynamoDB web service more closely. (Currently, this parameter introduces delays only for global secondary indexes that are in either CREATING or DELETING status.)'
77
-
},{
77
+
},{
78
78
option: 'optimizeDbBeforeStartup',
79
79
shortcut: 'o',
80
80
description: 'Optimizes the underlying database tables before starting up DynamoDB on your computer. You must also specify -dbPath when you use this parameter.'
81
-
},{
81
+
},{
82
82
option: 'create',
83
83
shortcut: 'c',
84
84
description: 'After starting dynamodb local, create dynamodb tables and run seeds'
85
-
}]
85
+
},{
86
+
option: 'downloadFrom',
87
+
shortcut: 'D',
88
+
description: 'Specify the path where you want to download dynamodb. Default path is serverless-dynamodb-local/dynamodb/bin'
89
+
}]
86
90
});
87
91
88
92
returnBbPromise.resolve();
@@ -101,7 +105,7 @@ module.exports = function (S) { // Always pass in the ServerlessPlugin Class
101
105
}
102
106
103
107
table(evt){
104
-
returnnewBbPromise(function(resolve,reject){
108
+
returnnewBbPromise(function(resolve,reject){
105
109
letoptions=evt.options,
106
110
config=S.getProject().custom.dynamodb,
107
111
table=config&&config.table||{},
@@ -123,22 +127,22 @@ module.exports = function (S) { // Always pass in the ServerlessPlugin Class
0 commit comments