aws-cdk
aws-cdk copied to clipboard
s3-notifications: add option to skip permissions for LambdaDestination
trafficstars
Describe the feature
Similar to the LambdaDestination in aws-logs-destinations:
https://github.com/aws/aws-cdk/blob/47a3ee3e7590fd085530cd16417fd506c5b9f4d7/packages/aws-cdk-lib/aws-logs-destinations/lib/lambda.ts#L13
I would like to have the same option in the LambdaDestination in aws-s3-notifications.
This feature request is similar to https://github.com/aws/aws-cdk/issues/14198
Use Case
We have an shared Lambda function (acting as a forwarder) that already has all appropriate permissions, and we don't want anyone to be able to change those permissions.
Proposed Solution
Add an additional option addPermissions?: boolean
Other Information
No response
Acknowledgements
- [x] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
AWS CDK Library version (aws-cdk-lib)
2.201.0
AWS CDK CLI version
2.1018.1
Environment details (OS name and version, etc.)
macOS