AWS cloudsearch on dynamodb with serverless

I am using serverless (AWS + nodejs + dynamodb). I want to implement full text search and multiple field filtering with pagination. Seems I need to create cloudsearch on top of dynamodb, can I configure it with serverless.yaml? Is there any good example you can share with me? Thanks

Typically you’ll setup Elasticsearch, which you can do in the resources section of your serverless.yaml, then add a stream to the dynamodb table with a Lambda that reads from the stream and write to Elasticsearch.

1 Like