From 6d5e9be2fe3eea790937247bbb4c3288aade988b Mon Sep 17 00:00:00 2001 From: Kevin Perrine Date: Sat, 13 Nov 2021 05:26:50 -0500 Subject: [PATCH] Update README.md small comment about using aws-sdk v3 with migrations. If the client is a `DynamoDBClient` instance, any actions will fail with `Cannot invoke getCurrentVersion: Cannot read property 'describeTable' of undefined`. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ea32994..54042c9 100644 --- a/README.md +++ b/README.md @@ -332,6 +332,8 @@ const Migrations = [ ] let client = new DynamoDB.DocumentClient() +// if using aws-sdk v3 the client needs to be wrapped in the Dynamo class +// let client = new Dynamo({ client: new DynamoDBClient({}) }); exports.handler = async (event, context) => { let {action, args, config} = event