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
posta 2 anni fa3892 visualizzazioni
4 Risposte
2
Risposta accettata

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
con risposta un anno fa
profile picture
ESPERTO
verificato un mese fa
profile picture
ESPERTO
verificato 10 mesi fa
profile picture
ESPERTO
verificato 10 mesi fa
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
con risposta 2 anni fa
  • 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
ESPERTO
Uri
con risposta 2 anni fa
profile picture
ESPERTO
verificato un mese fa
profile picture
ESPERTO
verificato 10 mesi fa
profile pictureAWS
ESPERTO
Toni_S
verificato 2 anni fa
  • 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
con risposta 8 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande