Why is my Lambda function using an old version of the code?

0
8
Asked By CuriousCoder72 On

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

Answered By TechyNerd99 On

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.

CuriousCoder72 -

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.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.