Description

A docker container to auto update “A records” (main domain name not subdomains) for a given domain on Amazon’s AWS Route53.

DockerHub Link
auto-update-route53

My use case:
Self-hosted services behind non-static IP address AKA your normal internet home connection.
This updates the route53 A record with my dynamic IP address if it changes.

Environment variables:

  • AWS_REGION {see AWS regions table below (e.g. us-east-1)}
  • HOSTING_ZONE_ID {get this from your AWS Route53 console management GUI}
  • DOMAIN_NAME {the domain who’s A record you would like updated automatically)
  • ACCESS_KEY_ID {AWS account access key with read/write access to Route53}
  • SECRET_KEY {secret key of the AWS account-obtain this when you created the user on AWS}
  • SYNC_EVERY_SECONDS {Check for mismatch of external IP address interval in seconds}

AWS regions (use value for HOSTING_ZONE_ID environment variable according to your region)

Region Value
Asia Pacific (Hong Kong) ap-east-1
Asia Pacific (Tokyo) ap-northeast-1
Asia Pacific (Seoul) ap-northeast-2
Asia Pacific (Mumbai) ap-south-1
Asia Pacific (Singapore) ap-southeast-1
Asia Pacific (Sydney) ap-southeast-2
Canada (Central) ca-central-1
EU Central (Frankfurt) eu-central-1
EU North (Stockholm) eu-north-1
EU West (Ireland) eu-west-1
EU West (London) eu-west-2
EU West (Paris) eu-west-3
South America (Sao Paulo) sa-east-1
US East (Virginia) us-east-1
{US East (Ohio) us-east-2
US West (N. California) us-west-1
US West (Oregon) us-west-2
China (Beijing) cn-north-1
China (Ningxia) cn-northwest-1
US GovCloud East (Virginia) us-gov-east-1
US GovCloud West (Oregon) us-gov-west-1

Leave a Reply

Your email address will not be published. Required fields are marked *