Managing Route53 zones using command-line
From Notes_Wiki
Home > Amazon web services > Managing Route53 zones using command-line
We can use cli53 ( https://github.com/barnybug/cli53 ) for updateing route53 DNS records in a easy way from command line.
Installing cli53
To install cli53 use:
sudo pip install cli53
Configure security credentials
Configure boto security credentials by creating '~/.boto' file with appropriate credentials.
[Credentials] aws_access_key_id = <your access key> aws_secret_access_key = <your secret key>
Create RR
To create RR use something like:
cli53 rrcreate <domain> <hostname> <type> <value> --ttl 300 --replace --wait
Example
cli53 rrcreate sbarjatiya.com www CNAME ec2-54-202-44-200.us-west-2.compute.amazonaws.com --ttl 300 --replace --wait
Delete RR
To delete RR use something like:
cli53 rrdelete <domain> <hostname>
Example
cli53 rrdelete sbarjatiya.com www
Note that you cannot use FQDN such as stest.api.mtoc.us as command line arguments. Only hostname can be used.
Help
More info on cli53 can be obtained using '--help' option such as 'cli53 --help' or 'cli53 rrcreate --help'
Home > Amazon web services > Managing Route53 zones using command-line