Cannot deploy lambda on edge

0

Hello,
I'm getting the following error when trying to add a deploy@edge trigger to my lambda:

You cannot update the specified distribution using this API version because it is associated with a cache policy. (Service: AmazonCloudFront; Status Code: 400; Error Code: IllegalUpdate; Request ID: 43a578a3-65de-4f2f-99a6-31ba325ad78f; Proxy: null)

I've tried following the steps in the link below, but cannot go past the deploy@edge part:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-how-it-works-tutorial.html#lambda-edge-how-it-works-tutorial-cloudfront

Could you pls advise?

已提問 4 年前檢視次數 449 次
2 個答案
0

Edit the CloudFront Default Cache Behavior Settings in Behavior tab and in "Cache and origin request settings" select "Use legacy cache settings" and change "Cache Based on Selected Request Headers" to None.

已回答 4 年前
0

thank you! best if this detail is added to the tutorial page

已回答 4 年前

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

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

回答問題指南