How to pause a serverless app on AWS?

Hello guys,

I would like to know from your experience about the faster day to pause a serverless app. Basically I am running a serverless-fw application on AWS and I am noticing some random spikes on my API so I would like to build a custom process for pausing the API (partially or completely) when my AWS Budget get’s on $XX USD

Do you have any recommendations?

To prevent traffic peak, You can activate throttling as documented in api gateway documentation

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html#apigateway-how-throttling-limits-are-applied

For now I do not know how to do it in serverless without this plugin;