2 # source: https://eff-certbot.readthedocs.io/en/latest/install.html#alternative-1-docker
4 # make sure the local image is always up to date
5 docker image pull certbot/dns-route53
7 # run local instance only long enough to collect the certificate
8 docker run --rm --name certbot \
9 -v "/etc/letsencrypt:/etc/letsencrypt" \
10 -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
11 -v "$HOME/.aws:/aws" \
12 -e "AWS_CONFIG_FILE=/aws/config" \
13 -e "AWS_SHARED_CREDENTIALS_FILE=/aws/credentials" \
15 certbot/dns-route53 certonly -n \
16 --dns-route53 -v -d 'purplebirdman.com,*.purplebirdman.com'