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.

profile picture
Adrian
已提問 2 年前檢視次數 3891 次
4 個答案
2
已接受的答案

AWS WAF cannot be configured directly, but using CloudFront, WAF can be integrated and secured. Refer to this blog for more details - https://aws.amazon.com/blogs/compute/securing-lambda-function-urls-using-amazon-cognito-amazon-cloudfront-and-aws-waf/

AWS
Raju
已回答 1 年前
profile picture
專家
已審閱 1 個月前
profile picture
專家
已審閱 10 個月前
profile picture
專家
已審閱 10 個月前
2

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
hayao-k
已回答 2 年前
  • Sounds good. Thank you!

1

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.

profile pictureAWS
專家
Uri
已回答 2 年前
profile picture
專家
已審閱 1 個月前
profile picture
專家
已審閱 10 個月前
profile pictureAWS
專家
Toni_S
已審閱 2 年前
  • Thanks for the additional info, very useful!

    Cheers!

  • Thanks for the link!

0

You can use CloudFront + labdaAtedge to fully secure the access using url signing. I wrote a whole article explaining the process here

Dario
已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南