I have a Lambda@Edge function which has 2 versions. Version 1 has non-functional code and version 2 has the latest operational code. What that function does is it fetches an object from an S3 bucket and attaches it to the response object. I have attached the latest version of this edge function which is version 2 to a CloudFront distribution. But in each IAC deployment, I can see both version 1 and version 2 "last_modified" timestamp has been changed.
Does anybody know why? I've gone through AWS documentation but I couldn't find any reason.