DianaIonita / serverless-api-gateway-throttling

A plugin for the Serverless framework which configures throttling for API Gateway endpoints.
ISC License
69 stars 7 forks source link

Throttling on a service level is not working #4

Closed patrickwerz closed 4 years ago

patrickwerz commented 4 years ago

Hi Diana, thanks for this plugin. I just deployed my sls project. Unfortunatelly, the throttling on the function level hasn't changed. It is still "Inheriting from stage". Do you have any idea what the reason could be? I configured my service sls file as you did in the readme.

Thanks again, Patrick

DianaIonita commented 4 years ago

Hi @patrickwerz,

Would you mind sharing the Serverless Framework version you're using and the serverless.yml configuration please?

patrickwerz commented 4 years ago

Hi Diana, Can I send you the file non-publicly? Best regards, Patrick

Am Fr., 20. März 2020 um 20:11 Uhr schrieb Diana Ionita < notifications@github.com>:

Hi @patrickwerz https://github.com/patrickwerz,

Would you mind sharing the Serverless Framework version you're using and the serverless.yml configuration please?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DianaIonita/serverless-api-gateway-throttling/issues/4#issuecomment-601867778, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3QFRR5ZWNY36VW2ZWN3P3RIO5VFANCNFSM4LQR5A6A .

patrickwerz commented 4 years ago

Hi Diana, I anonymized the sls file. You can see the service level throttling at "provisioningServiceV3" .

Thanks for your help Patrick

I had to change to file type from yml to txt service: iot-provisioning-service.txt

DianaIonita commented 4 years ago

Hi @patrickwerz,

I tried out a configuration like the one you provided and it seems to work. The throttling settings are correct at stage level and the function with custom settings is shown as overriding throttling settings.

I'm using the latest version of the plugin and the latest version of the Serverless framework, is that what you're using as well?