-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(lambda): configurable retries for log retention custom resource #8258
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
Merged
mergify
merged 15 commits into
aws:master
from
jaapvanblaaderen:log-retention-rate-exceeded-error
Jun 12, 2020
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
53fcc4e
fix(lambda): increase retry count for creating cloudwatch log groups
jaapvanblaaderen 4856cb3
Merge branch 'master' into log-retention-rate-exceeded-error
jaapvanblaaderen 044a81c
fix(lambda): Make retry options configurable for CloudWatchLogs group…
jaapvanblaaderen 4f3ef1d
Merge branch 'master' into log-retention-rate-exceeded-error
jaapvanblaaderen 1f86f2f
fix(lambda): Fix integration test
jaapvanblaaderen 5e9a4f0
Merge remote-tracking branch 'jaap/log-retention-rate-exceeded-error'…
jaapvanblaaderen 7ca18c7
fix(lambda): Code cleanup - fix review comments
jaapvanblaaderen f33ae20
Merge branch 'master' into log-retention-rate-exceeded-error
jaapvanblaaderen c4823d5
fix(lambda):Update readme
jaapvanblaaderen 1c6f5d7
Update packages/@aws-cdk/aws-lambda/lib/log-retention.ts
jaapvanblaaderen 6708723
Tweak comment
jaapvanblaaderen 6f4057c
fix(lambda): Fix review comments
jaapvanblaaderen 458b074
Merge remote-tracking branch 'jaap/log-retention-rate-exceeded-error'…
jaapvanblaaderen 1c15e29
Merge branch 'master' into log-retention-rate-exceeded-error
mergify[bot] 7de918b
Merge branch 'master' into log-retention-rate-exceeded-error
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
How about making this configurable here -
aws-cdk/packages/@aws-cdk/aws-lambda/lib/log-retention.ts
Line 12 in fd54a17
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.
Ok, that makes sense. Do you mean something like this:
LogRetentionProps:Allow the retry options to be configured in the Lambda by adding the
LogGroupRetryOptionsproperty also inFunctionOptions.Use the retry options in the log retention provider Lambda.
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.
You don't need to do #2.
Once defined in
LogRetentionProps, pass it into thepropertieskey and it should be available in the provider lambda. Just like the other values underproperties.Uh oh!
There was an error while loading. Please reload this page.
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.
I understand that, but I guess the goal here is to also make the retry options configurable via the Lambda props? So when a CDK users creates a Lambda, they can also specify the retry options.
The
logRetentionandlogRetentionRoleprops are also part ofFunctionOptionsto enable something similar.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.
@nija-at Just checking, does my previous comment makes sense? I'd like to continue and obviously create a wonderful PR to fix the issue 🙂
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.
Yes, something like that makes sense. Thanks for explaining.
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.
Made the changes, please check the PR description for additional details on implementation choices.