Created
November 18, 2012 01:12
-
-
Save masayang/4102359 to your computer and use it in GitHub Desktop.
Dynamic DNS script for Route53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
export AWS_ACCESS_KEY_ID=YOURAWSKEYHERE | |
export AWS_SECRET_ACCESS_KEY=YOURAWSSECRETACCESSKEYHERE | |
HOSTNAME=`curl http://169.254.169.254/latest/meta-data/public-hostname` | |
TTL=60 | |
R53CMD=/usr/bin/route53 | |
ZONEID=Z1SP2Z8BRPBI0E | |
CNAME=host.domain.com. | |
$R53CMD change_record $ZONEID $CNAME CNAME $HOSTNAME $TTL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
change_record command is packaged in boto.