Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon DocumentDB Stream To EventBridge via AWS Lambda Integration #1478

Closed
wants to merge 39 commits into from

Conversation

MohamadSoufan
Copy link
Contributor

@MohamadSoufan MohamadSoufan commented Jul 6, 2023

Issue #, if available:
#1479
Description of changes:

This project contains a sample AWS Cloud Development Kit (AWS CDK) template for configuring and deploying a CDC Stream (Similar to DynamoDB Stream) for Amazon DocumentDB using AWS Lambda and EventBridge. The stream will processes changes and send them to an EventBridge Bus for further processing.

DocumentDBStream

The following resources will be provisioned:

  • A Lambda Function that processes the changes from an already existing Amazon DocumentDB Database and sends them to an EventBridge Bus
  • An AWS CDK Custom Resource Lambda Function that enables the CDC of Amazon DocumentDB onto the stream Lambda Function
  • A VPC Endpoint for the AWS Lambda Service (This is crucial to enabling the Lambda Event Source Mapping off of the Amazon DocumentDB Database)
  • A VPC Endpoint for the AWS Secret Manager Service (This is crucial to allow the Lambda Event Source Mapping off of the Amazon DocumentDB Database)
  • A VPC Endpoint for the AWS EventBridge Service
  • An EventBridge Bus that will receive changes from the Lambda and publish them to an EventBridge Rule
  • An EventBridge Rule that receives the changes for the bus and publishes them to given targets for further processing
  • A Lambda Function that acts as a target for the EventBridge Rule and further processes the changes

@MajdSoufan
Copy link
Contributor

@mavi888 are we good to move forward with this PR?

@MajdSoufan
Copy link
Contributor

@mavi888 just following up to see if you have any updates.

@jbesw
Copy link
Contributor

jbesw commented Jul 11, 2023

Hello, typically patterns have 4 (sometimes 5) services at maximum. This submission is more of a solution, so I recommend publishing to a separate repo, and then submitting to our repos collection at https://serverlessland.com/repos.

@jbesw jbesw closed this Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants