Sign inSign up

pyrocro/auto-update-route53

By pyrocro

•Updated over 1 year ago

Auto update Route53 "A records" with current external IP address

Image
0

5.9K

pyrocro/auto-update-route53 repository overview

⁠Description

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

My use case: Self-hosted services behind non-static IP address AKA your normal internet home connection. It periodically updates the route53 A record with my dynamic IP address only 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}
  • RECORD_IDS {Only update A record(s) listed here. You can have 1 or multiple seperated by comma eg. RECORD_IDS= ID1 eg.2 RECORD_IDS= ID1,ID2,ID3 }

AWS regions (use value for HOSTING_ZONE_ID environment variable according to your region)
RegionValue
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

Tag summary

Content type

Image

Digest

sha256:ed877c62e…

Size

243.8 MB

Last updated

over 1 year ago

docker pull pyrocro/auto-update-route53