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 年前448 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则