-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(lambda-event-sources): failure handling for stream event sources #5929
feat(lambda-event-sources): failure handling for stream event sources #5929
Conversation
… event source parameters Closes aws#5236
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xerofun -
First off, thanks for submitting this PR!
My my initial comments are below and @duarten has some as well. Take your time to address them. This PR is likely going to need 2-4 iterations until the code is ready to be merged.
You will need to also update the README.md
file in the appropriate packages and describe how these new features should be used, along with code snippets or examples.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Please add documentation of this feature to the README with a code snippet.
-
Beyond unit tests, how did you test that your changes actually work when deployed to CloudFormation?
I suggest that you create an integration test that sets up a stream (say, kinesis) configured with a lambda function to read from the stream as an event source and an queue as a failure destination and deploy it.
[optional] set it up in a way that the function fails and the queue has the failed messages, which can be verified. The test should have a few lines of comments on how to actually test that this worked.
You should be able to runcdk deploy
on this integration test, followed by a set of AWS CLI commends to confirm everything worked.
Here are a few examples - integ.destinations.ts, integ.token-authorizer.ts
UPDATE: Marked one item as optional in my above comment.
…ttps://github.com/xerofun/aws-cdk into xerofun/lambda-event-source-mapping-parameters-5236
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment switching IResource
to EventSourceMapping
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@nija-at looks like there was a hiccup in the merge build - is there anything i can do to give it a nudge? |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Build failure because of the ongoing CDK release. Closing and re-opening this PR to re-trigger the build. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Closes #5236
Commit Message
feat(lambda-event-sources): failure handling for stream event sources
Co-authored-by: Niranjan Jayakar <[email protected]>
closes #5236
End Commit Message
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license