Closed NitroCat closed 4 years ago
Hey @NitroCat
Thanks for reporting this! The customFunctionName
was originally introduced to support the custom name you can give a lambda when it's deployed:
However it looks like it's not required at all, so I removed it and created a release which hopefully fixes your problem. Feel free to reopen this issue if not.
Hello, I've installed and configured serverless-api-gateway-throttling in serverless.yaml as follows:
execute:
Actual result: Serverless throws:
Expected result Everything deployed successfully and throttling configuration applies to endpoint
After debugging looks like:
that line throws error https://github.com/DianaIonita/serverless-api-gateway-throttling/blob/48b920aeda3538ef7c0fa7926f7b93fd15e4bb3b/src/updateStageThrottling.js#L84 It tries to get function with name
some-service-name-some-stage-health-check
instead ofhealth-check
which is presented inserverless.service
What is the purpose use
customFunctionName
orfunctionName
. It should get function by some one name https://github.com/DianaIonita/serverless-api-gateway-throttling/blob/48b920aeda3538ef7c0fa7926f7b93fd15e4bb3b/src/ApiGatewayThrottlingSettings.js#L19Node.js: v10.15.3 Serverless: v1.54.0
It's very usefull serverless plugin and I hope bug will be fixed =)