This checks for changes to your public facing IP address (in line with the TTL specified) and updates a single record in AWS to point back at it.
You'll need a Hosted Zone in Amazon Route53, and an IAM user who's allowed to write updates to it - their AWS Key and Secret.
These can either be set as Environment Variables or passed as command line options..
AWS_IDYour AWS IDAWS_SECRETYour AWS SecretAWS_REGIONThe AWS Region (eg EU_WEST_1)TTLIs the TTL that will be sent to the DNS Provider, this is also used to set the retry rate for checking your IPROUTE53_IDIs the ID of the Hosted Zone where your record livesROUTE53_RECORDIs the record to update - eg *.mydomain.com
eg $ node index.js --AWS_ID=yourAWSId --AWS_SECRET=asdfasdfasdfasdf --AWS_REGION=eu-west-1 --ROUTE53_ID=ROUTE53ZONEID --ROUTE53_RECORD=*.mydomain.co.uk --TTL=300
- Install docker on your RPi
$ sudo curl https://get.docker.com | sh - Edit
config.envto add the parameters as environment variables - Install Docker-Compose on your device
$ sudo pip install docker-compose - Run
docker-compose -f docker-compose-pi.yml up -d