aws-samples / serverless-patterns

Serverless patterns. Learn more at the website: https://serverlessland.com/patterns.
https://serverlessland.com
Other
1.61k stars 928 forks source link

[New repo]: ddb-stream-opensearh-serverless #1899

Closed fanhongy closed 1 year ago

fanhongy commented 1 year ago

Description

This pattern allows you to stream new created item on a specific DynamoDB talbe to a Opensearch serverless collection for searching capability for DyanmoDB table.

language

English

runtime

TypeScript, Python

Level

200

Type

Examples

Use case

Backend

Primary image

https://github.com/fanhongy/ddb-stream-opensearh-serverless/blob/main/image/ddb-stream-aoss.png

IaC framework

AWS CDK

AWS Serverless services used

Description headline

This pattern will create a DynamoDB table, an Opensearch Serverless collections. When any new item being created on the DynamoDB table, it will trigger the lambda function which index the item with it's partition key to the Opensearch serverless collection. Removing the item in DynamoDB will also trigger the lambda function to remove the it from the Opensearch Serverless collection.

Repo URL

https://github.com/fanhongy/ddb-stream-opensearh-serverless

Additional resources

No response

Author Name

Stan Fan

Author Image URL

https://avatars.githubusercontent.com/u/58756168?v=4

Author Bio

Stan Fan is a Solutions Architect at Amazon Web Services (AWS) based on Sydney, Australia.

Author Twitter handle

No response

Author LinkedIn URL

https://www.linkedin.com/in/hongyi-fan-05101992/

leave

No response

jbesw commented 1 year ago

Thanks - this will be live at https://serverlessland.com/repos/ddb-stream-opensearch-serverless shortly.