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.
jarmod
79.8k18 gold badges132 silver badges137 bronze badges
asked Nov 5 at 14:45
ShanWave007
4591 gold badge7 silver badges21 bronze badges
-
Have you looked into CloudTrail and looked at the event history? The last modified happens when anything of your lambda changes, it could possibly be a tag created by the IaC.exception_thrown– exception_thrown2025年11月06日 15:02:56 +00:00Commented Nov 6 at 15:02