S3 Event Notification: SNS destination access policy not setting "aws:SourceAccount" #27994
Labels
@aws-cdk/aws-s3
Related to Amazon S3
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
Ref: https://github.com/aws/aws-cdk/blob/v2.105.0/packages/aws-cdk-lib/aws-s3-notifications/lib/sns.ts
As per the documentation - https://docs.aws.amazon.com/AmazonS3/latest/userguide/ways-to-add-notification-config-to-bucket.html#step1-create-sns-topic-for-notification
The expected Access policy should include in "Condition", but missing.
I believe this is causing S3 object create event to not trigger SNS notification
Expected Behavior
SNS notification triggered on S3 object creation
Current Behavior
SNS notification not triggered
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
v2.105.0
Framework Version
No response
Node.js Version
v2.105.0
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: