Closed Lpfigueiredo closed 1 year ago
Hi @Lpfigueiredo,
Please check that you've configured the plugin like in the example in the Readme.
Your serverless.yml
doesn't show custom.apiGatewayThrottling
settings:
plugins:
- serverless-api-gateway-throttling
custom:
# Configures throttling settings for the API Gateway stage
# They apply to all http endpoints, unless specifically overridden
apiGatewayThrottling:
maxRequestsPerSecond: 1000
maxConcurrentRequests: 500
Let me know if you're still having problems after that.
It worked! Thank you very much
Can we configure throttling values as env variable
For example
apiGatewayThrottling:
maxRequestsPerSecond: ${en:var1}
maxConcurrentRequests: ${env:var2}
Hey @asad-aiden, Sure, you can configure your parameters to come from wherever the serverless framework supports. Here's a helpful guide: https://www.serverless.com/framework/docs/providers/aws/guide/variables
Hi! I'm trying to use the plugin but i'm getting the following error when running
serverless deploy
:My serverless.yml is:
I'm using the Serverless HTTP API example. When I disable the plugin, the deployment occurs normally. I tried to re-deploy but the error persists.
Can you help me, please? Thanks