LoginSignup
0
0

More than 5 years have passed since last update.

[AWS]ワンライナーでRoute53の情報を取得

Last updated at Posted at 2016-09-07

自己満です。
管理画面いかなくても、コマンドでRoute53の情報をレコード毎に取れます。
forでzoneid取ってくれば全てのzone情報取得できます。

aws --profile ${_title} --region ${_region} route53 list-resource-record-sets --hosted-zone-id $zoneid | jq -c -r '.ResourceRecordSets[]|if .Type == "NS" then .Name else empty end'

※上記コードはNSレコードのみ
※profile使ってますが、aws configureでもよいっす

もっと良いやり方があったら教えて下さい。

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