AWS has come out with some pretty rad stuff recently. Lambda has my functional microservice pants in a twist. I have bult tons of nodejs services in the past but with Lambda I can forget about the wholle HTTP/s bitand just write some code. So, after using serverless to deploy my functions and set up the api gateway, I needed to put all this AWS goodness behind my own URL. Unfortunately, API Gateway requires a certificate and it can't be one create in ACM. So using certbot I ran the following:
certbot certonly --config-dir `pwd` --logs-dir `pwd` --work-dir `pwd` -a manual --rsa-key-size 2048 -d api.kyletilman.com(for some reason certbot only looks in /etc for config and stuff)
Certbot is put together by EFF and letsencrypt.org.