lambda-packages icon indicating copy to clipboard operation
lambda-packages copied to clipboard

Certbot on aws lambda?

Open tommedema opened this issue 8 years ago • 3 comments

I would like to contribute to this repo by building certbot for AWS lambda.

Am I correct in assuming that I would have to spin up a AWS linux EC2 instance, and then build certbot in a statically linked manner? How would one do this? I would like to give it a try after being brought into the right direction.

tommedema avatar Nov 23 '17 17:11 tommedema

Yep, either from a docker. But isn't certbot in pure python already?

Miserlou avatar Nov 23 '17 18:11 Miserlou

@Miserlou yes but I'm trying to get an executable that I could run from e.g. node.js

tommedema avatar Nov 23 '17 18:11 tommedema

If certbot is already pure python, you don't need to "run it from node.js". I'd suggest packaging and deploying using Zappa, then use the invoke command to call something like subprocess.check_output([ "/usr/bin/python2.7", "/var/task/certbot/whatever/certbots/cli/main/entrypoint/is" etc

Miserlou avatar Nov 24 '17 01:11 Miserlou