rcx935
rcx935

Reputation: 327

Is it right that I need to deploy my lambda in order to test it?

I'm writing some Python code on AWS Lambda. I haven't used AWS for a few months and I noticed that when I hit the TEST button the test no longer runs on the latest code that I've entered into the Lambda editor, even when I save the code. After some playing around I've found I need to press the DEPLOY button first, then my test runs fine.

Is this right? Surely I should be able to test my code before deploying it. The official AWS documentation doesn't specify that deploying is necessry to run a test.

enter image description here

Upvotes: 13

Views: 3971

Answers (1)

ServerlessChamp
ServerlessChamp

Reputation: 304

Yes, The Deploy button is updating the code, The Test button just Invoke your lambda with a test Event (That can be configured)

Upvotes: 11

Related Questions