Adding S3 bucket notification handler allows lambda access to all buckets #29991
Unanswered
namedgraph
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I got the following response from AWS Marketplace regarding a CF template I built with CDK:
My code is following this example (but in Java):
https://github.com/aws-samples/aws-cdk-examples/blob/main/python/lambda-s3-trigger/s3trigger/s3trigger_stack.py
I'd like to set the resource scope to the bucket's ARN, but how am I supposed to do that because the default handler policy always sets
*
?aws-cdk/packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource-handler.ts
Line 71 in 4f1c94b
Beta Was this translation helpful? Give feedback.
All reactions