From 9b57b5e00fb81b433cb683bbf664692069c99617 Mon Sep 17 00:00:00 2001 From: Dotan Agmon Date: Sun, 24 Jul 2022 10:04:40 +0300 Subject: [PATCH] Update README.md --- examples/serverless-localstack/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/serverless-localstack/README.md b/examples/serverless-localstack/README.md index 4c21d32..9cedfbd 100644 --- a/examples/serverless-localstack/README.md +++ b/examples/serverless-localstack/README.md @@ -46,13 +46,13 @@ ddt -i -## Exercises: -1. For understanding how to prepare data for transformation, take a look at "v4_using_preparation_data.js" - Move the file "v4_using_preparation_data.js" to the data-transformations folder. +## Exercises +1. For understanding how to prepare data for transformation, take a look at [v4_using_preparation_data.js](https://github.com/jitsecurity/dynamo-data-transform/blob/main/examples/serverless-localstack/EXERCISE-prepare-data/v4_using_preparation_data.js). + Move the file `v4_using_preparation_data.js` to the data-transformations folder. ```bash mv EXERCISE-prepare-data/v4_using_preparation_data.js data-transformations/UsersExample ``` - Let's check the prepare script results + Let's check the `prepare` script results ```bash npx sls dynamodt prepare --table UsersExample --tNumber 4 --dry ``` @@ -66,7 +66,7 @@ ddt -i ... } ``` - Now lets prepare some data for the transformation. Run the same command as before but without --dry. + Now lets prepare some data for the transformation. Run the same command as before but without `--dry`. ```bash npx sls dynamodt prepare --table UsersExample --tNumber 4 --stage local ``` @@ -74,15 +74,15 @@ ddt -i ```bash npx sls dynamodt up --stage local ``` - Now open the dynamodb GUI and check the data. + Now open the dynamodb GUI and check the data. http://localhost:8001/ 2. Rollback the last transformation ```bash npx sls dynamodt down --stage local --table UsersExample --dry ``` - Now you will see in the console that "hasWikiPage" field was removed from each item. - Lets rollback the last transformation for real. + Now you will see in the console that `hasWikiPage` field was removed from each item. + Let's rollback the last transformation for real. ```bash npx sls dynamodt down --stage local --table UsersExample ```