Skip to content

feat(parser): add schema for DynamoDB - Kinesis Stream event #3328

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

Conversation

am29d
Copy link
Contributor

@am29d am29d commented Nov 18, 2024

Summary

This PR adds built-in schema for DynamoDB -> Kinesis -> Lambda event.

Changes

  • moved kinesis test files according to new convention
  • add KinesisDynamoDBStream schema with a dedicated record schema
  • add new built-in schema to documentation

I have decided to add a built-in schema, instead of the envelope because we already follow this convention with SQS-SNS, FireHose-SQS and other chained events.

I have decided not to change the decompress logic (only the typo), because I want to address this issue in a separate PR. There are various cases what can be wrapped into a Kinesis stream and I'd like to take a step back and see how we can create a better structure that will allow us to compose more easily.

Please provide a summary of what's being changed

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #3193


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@am29d am29d self-assigned this Nov 18, 2024
@am29d am29d requested a review from a team November 18, 2024 20:26
@am29d am29d requested a review from a team as a code owner November 18, 2024 20:26
@boring-cyborg boring-cyborg bot added documentation Improvements or additions to documentation parser This item relates to the Parser Utility tests PRs that add or change tests labels Nov 18, 2024
@pull-request-size pull-request-size bot added the size/L PRs between 100-499 LOC label Nov 18, 2024
@github-actions github-actions bot added the feature PRs that introduce new features or minor changes label Nov 18, 2024
Copy link
Contributor

@dreamorosi dreamorosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll review this properly tomorrow morning, thanks for the PR.

When you get a chance, could you remove the unused imports flagged by SonarCloud?

@am29d am29d requested a review from dreamorosi November 19, 2024 09:04
Copy link
Contributor

@dreamorosi dreamorosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, just a couple minor comments.

I have tested the schemas with a deployed DynamoDB table & Kinesis Stream and it works perfectly!

It's still a bit cumbersome to extend the DynamoDB item with your own schema because it's nested and because we don't have an helper to marshall the items (#3194), but we'll address these soon-ish.

Thank you!

@am29d am29d requested a review from dreamorosi November 20, 2024 12:25
Copy link
Contributor

@dreamorosi dreamorosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR and for addressing my comments!

@am29d am29d merged commit a8dfa74 into main Nov 22, 2024
38 checks passed
@am29d am29d deleted the issue3193/Feature-request-parse-DynamoDB-Stream-events-via-Kinesis-Data-Stream branch November 22, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature PRs that introduce new features or minor changes parser This item relates to the Parser Utility size/L PRs between 100-499 LOC tests PRs that add or change tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: parse DynamoDB Stream events via Kinesis Data Stream
2 participants