Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions packages/serverless-offline-dynamodb-streams/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,20 @@ functions:
type: dynamodb
tableName: myTable
```

### Localstack

You could use [localstack](https://github.com/localstack/localstack) with the following configuration:

```yml
custom:
serverless-offline-dynamodb-streams:
apiVersion: '2013-12-02'
endpoint: http://0.0.0.0:4569
endpointStreams: http://0.0.0.0:4570
region: eu-west-1
accessKeyId: root
secretAccessKey: root
skipCacheInvalidation: false
readInterval: 500
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ class DynamodbStreams {

this.lambda = lambda;
this.options = options;

this.client = new DynamodbClient(this.options);
if (this.options.endpointStreams) {
this.options.endpoint = this.options.endpointStreams;
}
this.streamsClient = new DynamodbStreamsClient(this.options);

this.readables = [];
Expand Down