Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kingsoftgames/certbot-lambda
Running Certbot on AWS Lambda.
https://github.com/kingsoftgames/certbot-lambda
aws aws-lambda certbot python3 serverless
Last synced: 8 days ago
JSON representation
Running Certbot on AWS Lambda.
- Host: GitHub
- URL: https://github.com/kingsoftgames/certbot-lambda
- Owner: kingsoftgames
- License: mit
- Created: 2018-04-28T11:10:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-17T15:37:26.000Z (over 1 year ago)
- Last Synced: 2024-06-15T17:38:19.610Z (5 months ago)
- Topics: aws, aws-lambda, certbot, python3, serverless
- Language: HCL
- Size: 33.9 MB
- Stars: 40
- Watchers: 3
- Forks: 23
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# certbot-lambda
Running Certbot on AWS Lambda.
Inspired by [Deploying EFF's Certbot in AWS Lambda](https://arkadiyt.com/2018/01/26/deploying-effs-certbot-in-aws-lambda/).
## Features
- Supports wildcard certificates (Let's Encrypt ACME v2).
- Uploads certificates to specified Amazon S3 bucket.
- Works with CloudWatch Scheduled Events for certificate renewal.
- Use Terraform to deploy to AWS (See [terraform folder](terraform)).## How to archive zip file for lambda function
```bash
./package.sh
```## How to update certbot version
- Source virtualenv
```bash
source certbot/venv/bin/activate
```
- Recreate requirements.txt with any plugins
```bash
readonly CERTBOT_VERSION=1.17.0
readonly CERTBOT_DNS_TENCENTCLOUD_VERSION=1.3.0
pip3 install \
certbot==${CERTBOT_VERSION} \
certbot-dns-route53==${CERTBOT_VERSION} \
certbot-dns-tencentcloud==${CERTBOT_DNS_TENCENTCLOUD_VERSION} # Optional dns plugin
```
- Create new requirements file
```bash
# https://stackoverflow.com/questions/39577984/what-is-pkg-resources-0-0-0-in-output-of-pip-freeze-command
pip freeze | grep -v "pkg-resources" > requirements.txt
```