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

DocumentDB Lambda Trigger support? #11820

Open
1 task done
bneigher opened this issue Mar 15, 2023 · 6 comments · May be fixed by #11902
Open
1 task done

DocumentDB Lambda Trigger support? #11820

bneigher opened this issue Mar 15, 2023 · 6 comments · May be fixed by #11902

Comments

@bneigher
Copy link

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Use case description

Hello Serverless! On Feb 28th 2023, aws announced DocumentDB CDC lambda triggers support. This is a powerful feature that replaces existing approaches (polling, or AWS DMS migrations).

It doesn't seem like currently serverless supports this trigger. Do you guys plan on adding it and if so, when can we expect to have it released?

Much appreciated!

Proposed solution (optional)

It looks like it would be a relatively simple (basic) configuration.

image

@medikoo
Copy link
Contributor

medikoo commented Mar 16, 2023

@bneigher thanks for openning that.

To me it feels as third option for our stream event. Still as there's a call to split stream event into separate events (#8137), instead I'll introduce a new documentDb event. WDYT?

If anyone wants to take the effort and implement it, I believe we should start with a short spec outlining what properties will new event support

@bneigher
Copy link
Author

I think either approach is fine. I haven't used the trigger yet manually yet so I don't have any feedback on what the spec would look like. Appreciate the triage @medikoo!

@bneigher
Copy link
Author

hey @medikoo! just wanted to get an approximate estimate on when we can expect this feature to get released into serverless? trying to figure out non click-ops alternatives and knowing when we may expect this feature to roll out will inform the decision making. thank you!

@medikoo
Copy link
Contributor

medikoo commented Mar 22, 2023

@bneigher we do not have the capacity to address it in our scope. Therefore we'll accept the contribution from the community. Can you work on that?

@bneigher
Copy link
Author

@medikoo ah ok. I took a look and I think I see in general where to add the code, but I don't have the time to figure out how to test this, ect as I'm pretty swamped. So I don't think I'll be able to add this feature myself. Also it's unclear from the documentation the actions internally that I need to add under the rds service (other than these)

rds:DescribeDBClusters
rds:DescribeDBClusterParameters
rds:DescribeDBSubnetGroups

which are equivalent to the policy statements listed for dynamodb and kinesis in the /lib/plugins/aws/package/compile/events/stream.js

so I will explore alternative means to add this trigger to my lambda deployment pipeline.. cc @westergaards

@Inqnuam Inqnuam linked a pull request Apr 6, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants