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
To list all of the options for a specific command run:
93
-
Serverless plugin:
95
+
The function parameters:
96
+
- ddb: The DynamoDB Document client object see [DynamoDB Client](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-dynamodb)
97
+
- isDryRun: Boolean indicating if --dry run supplied. You can use it to print/log the data instead of storing it.
98
+
- preparationData: if you stored the preparation data using `dynamodt prepare`, you can use it here.
99
+
100
+
2. Run the data transformation
94
101
```bash
95
-
sls dynamodt <command> --help
102
+
dynamodt up
96
103
```
97
104
98
-
## What happens behind the scenes
99
-
- When a data transformation runs for the first time, a record in your table is created. This record is for tracking the executed transformations on a specific table.
100
105
101
-
## Data Transformation Script Format (e.g v1_script.js)
106
+
## Data Transformation Script Format
102
107
```js
103
108
const { utils } =require('dynamo-data-transform')
104
109
@@ -128,9 +133,38 @@ module.exports = {
128
133
```
129
134
130
135
136
+
137
+
## Usage and command-line options
138
+
139
+
List available commands:
140
+
Serverless plugin:
141
+
```bash
142
+
sls dynamodt --help
143
+
```
144
+
Standalone npm package:
145
+
```bash
146
+
dynamodt help
147
+
```
148
+
149
+
150
+
To list all of the options for a specific command run:
151
+
Serverless plugin:
152
+
```bash
153
+
sls dynamodt <command> --help
154
+
```
155
+
156
+
Standalone npm package:
157
+
```bash
158
+
dynamodt <command> --help
159
+
```
160
+
161
+
## What happens behind the scenes
162
+
- When a data transformation runs for the first time, a record in your table is created. This record is for tracking the executed transformations on a specific table.
[Examples of data transformation code](https://github.com/jitsecurity/dynamo-data-transform/tree/main/examples/serverless-localstack/data-transformations/UsersExample)
For more examples of data transformation code, see the [examples](https://github.com/jitsecurity/dynamo-data-transform/tree/main/examples/serverless-localstack/data-transformations/UsersExample) folder in the repository.
278
229
279
-
For more examples of data transformation code, see the examples folder in the repository.
0 commit comments