AWS Lambda FUnction

0

Well so I have created aws lambda function, prev the code was console.log("Hello"); I changed it to console.log("Lambda"); When function is being called i am getting Hello in logs. I used sam build then sam deploy but new changes are not reflecting help me.When I see the last change I am getting Last modified 25 days ago

Harshu
asked 22 days ago94 views
2 Answers
0

Hello.

Did you encounter any errors when you executed "sam build" or "sam deploy"?
Also, can you check the Lambda console to see if the code is deployed successfully?

There is a possibility that an alias has been created, so please check whether the latest alias is running.
https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html

profile picture
EXPERT
answered 22 days ago
profile pictureAWS
EXPERT
reviewed 22 days ago
0

In addition to the alias answer given here, one other thing:

How is the code being deployed? If the code is being held in S3 or some other repository (and not inline in the template) then doing a new SAM deployment will not update the code in the Lambda function because the build process doesn't see a change in the template. You need to deploy the changed code separately.

profile pictureAWS
EXPERT
answered 21 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions