Search code examples
amazon-cloudfrontaws-lambda-edge

Lambda@Edge - You cannot update the specified distribution using this API version because it is associated with a cache policy


I am trying to setup Lambda@Edge but getting the following error on clicking Deploy to Lambda@Edge button.

You cannot update the specified distribution using this API version because it is associated with a cache policy.

My CloudFront distribution is already ready and is in Deployed state.

Can someone please help me with this issue?

enter image description here


Solution

  • I was able to solve this by switching to 'Legacy cache settings'. I got the lead from this link: https://forums.aws.amazon.com/message.jspa?messageID=950582

    enter image description here