Skip to content

Instantly share code, notes, and snippets.

@ahnooie
ahnooie / hook-dns-01-lets-encrypt-route53.py
Last active February 8, 2018 03:34 — forked from grzr/hook-dns-01-lets-encrypt-route53.py
Python 3 script to use as a hook for the letsencrypt.sh client
#!/usr/bin/env python3
# How to use:
#
# LE_HOSTED_ZONE=XXXXXX LE_AWS_PROFILE=dns-access ./letsencrypt.sh --cron --domain example.org --challenge dns-01 --hook /tmp/hook-dns-01-lets-encrypt-route53.py
#
# More info about letsencrypt.sh: https://github.com/lukas2511/letsencrypt.sh/wiki/Examples-for-DNS-01-hooks
# Using AWS Profiles: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-multiple-profiles
# Obtaining your Hosted Zone ID from Route 53: http://docs.aws.amazon.com/cli/latest/reference/route53/list-hosted-zones-by-name.html
@ahnooie
ahnooie / route53.py
Created January 31, 2018 05:57 — forked from rmarchei/route53.py
route53 hook for dehydrated - python2 / python3 + boto2 version. Tested on Ubuntu 16.04
#!/usr/bin/env python
# How to use:
#
# Ubuntu 16.04: apt install -y python-boto OR apt install -y python3-boto
#
# Specify the default profile on aws/boto profile files or use the optional AWS_PROFILE env var:
# AWS_PROFILE=example ./dehydrated -c -d example.com -t dns-01 -k /etc/dehydrated/hooks/route53.py
#
# Manually specify hosted zone:
@ahnooie
ahnooie / Bash commands 1
Last active December 22, 2016 21:27
Mule 3.x configuration as a Ubuntu service
$ sudo vim /etc/init.d/mule
@ahnooie
ahnooie / wrapper.conf
Last active December 21, 2016 23:32 — forked from rhoegg/wrapper.conf
setting MULE_ENV system property in wrapper.conf
wrapper.java.additional.4=-Dmule.env=staging