PyDyDNS
A simple script to update a Route53 record to point to one's public IP. I use this to keep a Raspberry Pi in my house accessible from the public internet.
I considered creating this as a Lambda+API Gateway function that's hit with a key and client IP, but containing the functionality in one place ended up being simpler.
Setup
-
You'll need a domain managed by Route53 with a subdomain to keep pointed to your IP.
-
Create an IAM user and get an access key. IAM user should have AmazonRoute53FullAccess policy.
-
Add credentials and domain to config file. See sample config. (You can also
pip install awscli
and runaws configure
to have boto3 use your stored credentials.) -
Add a
cron
job to runpython dydns.py
at whatever interval you'd like.