Invoking previous versions of an AWS Lambda


I’m trying to invoke a previous version of a function. The docs for this are pretty vague as they just say to “If you would like to do this, you can invoke your functions as arn:aws:lambda:…:function/myFunc:3 to invoke version 3 for example.”

I’ve tried doing

sls invoke -f arn:aws:lambda:us-east-1:104986632702:function/mylambda:1

where mylambda is at version 3. But this does not work. Does anyone know the correct way to invoke a previous lambda version?


an answer to this question would be great.