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 個回答
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
已回答 2 年前

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

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

回答問題指南