Lambda failed to execute from latest uploaded code of s3

0

When I update the code for lambda functions (this new code is zipped and uploaded to the S3 bucket during codebuild), the change is not deployed to the existing lambda functions.

SanPost
已提问 6 个月前264 查看次数
1 回答
1

After you upload your changes to S3, you need to call the Update Function API so that Lambda take these changes.

profile pictureAWS
专家
Uri
已回答 6 个月前
profile pictureAWS
专家
已审核 6 个月前
  • We have already done this, its was taking the latest code update. But dont know what happened its not taking the latest code change instead return the same old code changes.

  • Thanks for the prompt reply. Can you share any document on how to call the Update Function API for Lambda to take the latest code changes ( which is uploaded to S3 bucket)

  • You can use the CLI: aws lambda update-function-code --function-name <name> --s3-bucket <bucket name> --s3-key <object name>, or if you do it programmatically, you can use the SDK, e.g., for Python using boto3.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容