lambci / docker-lambda

Docker images and test runners that replicate the live AWS Lambda environment
MIT License
5.82k stars 431 forks source link

Use of "aws lambda update-function-code" in "stay-open" API mode? #291

Open laynr opened 4 years ago

laynr commented 4 years ago

It is possible to use "aws lambda update-function-code" when using "stay-open" API mode to update the lambda function code?

It would be nice to use the same AWS tool chain to update the function in this framework, as is used in the "real" framework. Also, my environment doesn't allow mounting local directories (-v). So instead I modify the container's Dockerfile to update my code.

I am hoping it is some combination of switches in the "aws tool" to point it to this local running version, but I haven't figured it out yet. Is it possible?

mhart commented 4 years ago

No that's not possible right now. It's an interesting feature, but it would involve copying over existing files on the user's machine which could be destructive.