fix(s3-notifications): unable to delete the existing S3 event notifications (under feature flag)#30610
Conversation
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
| // Removing lines that starts with '#' (comment lines) | ||
| const handlerSourceWithoutComments = handlerSource.replace(/^ *#.*\n?/gm, ''); | ||
|
|
||
| if (handlerSourceWithoutComments.length > 4096) { |
There was a problem hiding this comment.
Inline function code can now exceed 4096 bytes. It can support up to 4MB now.
Latest public documentation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile
packages/@aws-cdk/custom-resource-handlers/lib/aws-s3/notifications-resource-handler/index.py
Show resolved
Hide resolved
packages/@aws-cdk/custom-resource-handlers/lib/aws-s3/notifications-resource-handler/index.py
Show resolved
Hide resolved
packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource.ts
Outdated
Show resolved
Hide resolved
|
@mergify update |
☑️ Nothing to doDetails
|
|
@mergify update |
☑️ Nothing to doDetails
|
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…nts-notifications
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
@Mergifyio refresh |
✅ Pull request refreshed |
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 main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Issue # (if applicable)
Closes #28915
Reason for this change
Fix to address the issues deleting the existing S3 event notifications and adding new event notifications on top of existing notifications.
Description of changes
We fixed the hashing logic used to identify old vs external S3 event notifications
Description of how you validated changes
Manually tested, integration and unit tested the changes
yes
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license