Difference between revisions of "Managing Route53 zones using command-line"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Amazon_web_services|Amazon web services</yambe:breadcrumb> =Managing route53 zones using command line= We can use cli53 ( https://github.com/barnybug/cli53 ...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>Amazon_web_services|Amazon web services</yambe:breadcrumb>
[[Main_Page|Home]] > [[Amazon web services]] > [[Managing Route53 zones using command-line]]
=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.
We can use cli53 ( https://github.com/barnybug/cli53 ) for updateing route53 DNS records in a easy way from command line.
Line 8: Line 7:
<pre>
<pre>
sudo pip install cli53
sudo pip install cli53
</pre>
==Configure security credentials==
Configure boto security credentials by creating '<tt>~/.boto</tt>' file with appropriate credentials.
<pre>
[Credentials]
aws_access_key_id = <your access key>
aws_secret_access_key = <your secret key>
</pre>
</pre>


Line 40: Line 49:




<yambe:breadcrumb>Amazon_web_services|Amazon web services</yambe:breadcrumb>
[[Main_Page|Home]] > [[Amazon web services]] > [[Managing Route53 zones using command-line]]

Latest revision as of 05:21, 18 April 2022

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