By using AWS re:Post, you agree to the Terms of Use

AWS WAF with AWS Lambda Function URLs?

0

Is it possible to set up AWS WAF with AWS Lambda function URLs?

Didn't manage to find any info on it.

2 Answers
1
Accepted Answer

Lambda function URLs do not support WAF. If you need WAF, use API Gateway instead of function URLs.

If you use a CloudFront distribution instead, you will need to make sure that the requests are coming from CF. Users may be able to guess the URL and invoke the function directly, bypassing WAF. To prevent that you could add a special header with some secret value in CloudFront and you will need to verify that header in your Lambda functions.

EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
  • Thanks for the additional info, very useful!

    Cheers!

1

AWS WAF cannot be configured on Lambda Function URLs.

You can set Lambda Function URLs to CloudFront origin and enable AWS WAF for CloudFront.

profile picture
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions