-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Activated Cloudwatch Logs in Stage is overwritten in endpoint configuration #16
Comments
Hi Patrick, Thanks for raising this. I couldn't replicate the issue. I tried this yaml configuration: provider:
logs:
restApi:
level: INFO
accessLogging: true
executionLogging: true
custom:
apiGatewayThrottling:
maxRequestsPerSecond: 10
maxConcurrentRequests: 5
functions:
the-endpoint:
handler: handler.handle
events:
- http:
path: /
method: GET
throttling:
maxRequestsPerSecond: 20
maxConcurrentRequests: 10 The result is that logging is enabled, and throttling is configured on both the stage and the HTTP endpoint: Are you using the latest version of the Serverless framework? |
Thanks for your reply. I updated serverless framework and this plugin to the latest version. Today I created a new aws environment (serverless created a new stack) and everything worked fine as you described. It won't work for environments where you activate the exectionLogs after the creation (serverless update). Can you reproduce this? |
Hi @patrickwerz, Thanks for bringing this to my attention. You're right about the behaviour of the plugin and I was able to reproduce it. The issue seems to be around whether an endpoint inherits their settings from the stage, or whether it chooses to override stage settings. Since many other things can configure custom settings for an endpoint (the serverless framework itself, or some other plugins, and at different points in the deployment lifecycle), building a fix into the current workflow of the throttling plugin didn't seem like the right solution. From here, once you redeploy your project, both |
Hello,
thx for this great plugin.
I noticed the problem that when I activate execution logging on the stage level it gets falsely overwritten or not updated on the endpoint level.
here the function
Is this a known Problem? How can I fix it?
Thanks in advance,
Patrick
The text was updated successfully, but these errors were encountered: