LoginSignup
3
2

More than 5 years have passed since last update.

cli53のインストール手順

Posted at

Route 53はブラウザ上で操作可能ですが、cli53というpythonツールを使えばコマンドラインからも操作できます。大量のDNSを取り扱う際便利だと思います。
以下、CentOSでのインストール手順になります。
※当然ですが設定にはAWSのアクセスキーが必要です。

手順

1.Python, git, dnspythonをインストール

# yum install python, python-setuptools, git

2.pipのインストール (Pythonで書かれたパッケージソフトウェアをインストール・管理するためのパッケージ管理システム)

# easy_install pip

3.botoのインストール (AWSを操作するためのライブラリ)

# git clone http://github.com/boto/boto
# cd boto
# python setup.py install

4.cli53のインストール

# git clone https://github.com/barnybug/cli53
# pip install cli53

Successfullyと表示されれば無事インストール完了。

5.環境変数設定

# vi /root/.bashrc
----------------------------------------------
export AWS_ACCESS_KEY_ID=アクセスキー
export AWS_SECRET_ACCESS_KEY=シークレットキー
export PATH=$PATH:cli53/scripts/

※3行追記
----------------------------------------------

# source /root/.bashrc

以上で使えるようになるはずです。

# cli53 --help

list list hosted zones
info get details of a hosted zone
export export dns in bind format
import import dns in bind format
instances dynamically update your dns with instance names
create create a hosted zone
delete delete a hosted zone
rrcreate create a resource record
rrdelete delete a resource record
rrpurge purge all resource records
rrlist list all resource records

参考URL

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2