Blocking Requests with Lambda Function URLs

If you use Lambda Function URLs to front your serverless API, you will receive traffic from crawlers, scrapers, bots and vulnerability sniffers that generates unnecessary errors. In this article, I'll cover how I use CloudFront and CloudFront Functions to block that traffic at the edge so it never reaches the Lambda metrics and logs.