-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
short description:
Override Lambda Permission manually when creating a new API Gateway method.
Use Case
Recently I faced this issue when pointing multiple API Gateways methods to specific lambda :
The final policy size (XXX) is bigger than the limit (20480)
The feature allows users to bypass automatic permission creation (sort of "manual mode") to avoid this limitation.
I noticed that when using LambdaIntegration class the bind function adds permissions automatically to the lambda function based on the method URL.
My workaround was overriding the bind function with my own class ( see this post - https://stackoverflow.com/questions/59713522/cdk-override-bind-when-using-lambdaintegration?noredirect=1#comment105588249_59713522) and implement my own logic.
This feature can give more flexibility to the end-user and could give more control about the lambda permissions.
This is a 🚀 Feature Request