When creating an API construct is there any way to...
# help
k
When creating an API construct is there any way to reduce the amount of
AWS::Lambda::Permission
that are created? Looks like every route method (PUT, POST, GET, DELETE) has it's own Permission created.
f
Hey @Kyle Boucher, you need 1
AWS::Lambda::Permission
per Lambda function 😞
To add a bit of context, when you create an
AWS::Lambda::Permission
, you’d need to specify the function name to which it applies.
It’s 1-to-1 mapping.
k
Ah okay. Thanks @Frank