created: 2020-04-26T13:43:04.000Z

Terraform(AWS)でDNSのTXTレコードを作成する

Googleのサーチコンソールの認証をDNSでしたかったのでterraformで設定した

TXTレコードの値は records の中に入れる

resource "aws_route53_record" "b_n-t_jp__txt" {
  zone_id = "${aws_route53_zone.n_t.zone_id}"
  name = "b.f-f.jp"
  type = "TXT"
  ttl = "3600"
  records = ["google-site-verification=xxxxxxxxxx"]
}
入門 モダンLinux ―オンプレミスからクラウドまで、幅広い知識を会得する
[ad] 入門 モダンLinux ―オンプレミスからクラウドまで、幅広い知識を会得する
Michael Hausenblas, 武内 覚 (単行本(ソフトカバー))