Hi everyone! I'm facing an issue with my serverless application where it seems like my AWS Lambda function is executing an old version of the code instead of the latest one. I have a script tag in my outputs, and the logs indicate that it's running an older revision. However, when I check the Lambda console, it clearly shows the latest version of the code. Has anyone else experienced this kind of issue? I'm not using versioning, so $LATEST should reflect the current code. It's quite confusing because while the console shows updated code, the actual execution doesn't match. Here's a screenshot for reference: [https://imgur.com/a/LkVEFUz](https://imgur.com/a/LkVEFUz) . Any help would be appreciated!
1 Answer
Have you checked if you're using runtime management controls? If it's in Function update or Manual mode that could influence how the latest version is deployed.
I'm not using any app framework. It's pretty straightforward; I just deploy new code via Git. The function is standalone, linked as a datasource for my AppSync resolver.