update security custom header

0

Hi team,

I want to modify a custom header value in a CF origin with lambda. this lambda should read the value from the secret manager and update the value of the custom header in Cf accordingly.

is this achievable via a lambda function?

Thank you!

1 Risposta
1

Hi,

This is a use case which could be solved using Lambda@Edge. The blog post How to enhance Amazon CloudFront origin security with AWS WAF and AWS Secrets Manager demonstrates a similar scenario, adding a custom header with a value from Secrets Manager. One area to pay attention to is the selection of the CloudFront event used to trigger your Lambda function. Some events can be used to trigger the function on every request while others may only execute the function when CloudFront forwards a request to the origin, i.e. when the requested object is not in the CloudFront cache.

AWS
con risposta 2 anni 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