Sls invoke --local running last deployed version?

I’m using sls 1.26.1 with AWS Lambda NodeJS 8.10 and testing my function using the following command:

sls invoke --local -f <name> --log

I’ve noticed that this will only execute the code last deployed using sls deploy rather than my local changes to the function. Is there something I may be doing incorrectly?’

Thank you for the help ahead of time!

Change the command to:

sls invoke local -f <name> --log

1 Like

That works, thank you!

1 Like