Unwanted lambda invocations #1681
olivier-sabban
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been using serverless-lift for 2 years now (php custom website + assets), and it has been great. However, I'm facing an issue with lambda functions executing on unwanted URLs like /wp-admin/, resulting in unnecessary lambda invocations. This leads to wasted resources. Approximately 20% of my usage.
I'm looking for a way to prevent these executions. One approach I'm considering is changing the default CloudFront origin so that lambda isn't the default handler. Routing lambda functions based on .html extensions could be a solution.
I'm aware of the option to use WAF, but it's costly.
Does anyone have ideas on customizing serverless.yml with serverless framework ?
Or perhaps there's an alternative solution I haven't considered?
Any help or suggestions would be greatly appreciated. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions