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 Respuesta
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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas