Docker image for Dynamic DNS on Route 53
Create a user (role) with the following IAM policy.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"route53:ChangeResourceRecordSets",
"route53:ListResourceRecordSets"
],
"Resource": "arn:aws:route53:::hostedzone/HOSTZONE_ID"
}
]
}
docker run \
-e DDNS_ROUTE53_ZONE_ID=ABCDEFG123 \
-e DDNS_ROUTE53_RECORD_SET=foo.bar.com \
-e AWS_ACCESS_KEY_ID=HYJKLMN456 \
-e AWS_SECRET_ACCESS_KEY=OPQRSTUVWZYZ7890 \
nkmrtty/ddns53
DDNS_ROUTE53_ZONE_ID
: Hosted zone IDDDNS_ROUTE53_RECORD_SET
: Record set nameDDNS_ROUTE53_TTL
(optional) : TTLDDNS_ROUTE53_TYPE
(optional) : DNS record typeAWS_ACCESS_KEY_ID
: AWS access key IDAWS_SECRET_ACCESS_KEY
: AWS secret access key