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?

posta 4 anni fa448 visualizzazioni
2 Risposte
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.

con risposta 4 anni fa
0

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

con risposta 4 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