0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Route53で大量にエイリアスコードを登録したいならcli使お

Posted at

はじめに

20レコード程度でしたが、ALBを参照するドメインのAレコード(エイリアス)を作成する必要がありました。
「ゾーンファイルをインポート」で色々頑張っても頑張れなかったので別の方法で対応したので、備忘録を残します。

方法

  1. cli53というツールをインストール(バイナリファイルをダウンロードして実行権限付与してPATH通ってるところに置くだけ)
  2. rrcreateコマンドでインポート ※ <> で囲っている部分は適宜変更
cli53 rrcreate <対象ドメイン> '<サブドメイン> 86400 AWS ALIAS A dualstack-<ALBのDNS> <ALBのホストゾーン> true'

このコマンドをベースにShellを組むなりすれば手間なくレコード追加できる!

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?