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년 전3892회 조회
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
답변함 일 년 전
profile picture
전문가
검토됨 한 달 전
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
전문가
검토됨 한 달 전
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠