From 1bb74c8778f81124bb9ae7114f0a3ded51796402 Mon Sep 17 00:00:00 2001 From: Tim Birkett Date: Tue, 26 Feb 2019 07:46:00 +0700 Subject: [PATCH] Set DNS TTL of 60 seconds --- main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.tf b/main.tf index 3517a17..acf5e1e 100644 --- a/main.tf +++ b/main.tf @@ -110,6 +110,7 @@ resource "digitalocean_record" "public_a" { domain = "${var.public_domain}" type = "A" + ttl = "60" name = "${element(digitalocean_droplet.droplet.*.name, count.index)}" value = "${element(digitalocean_droplet.droplet.*.ipv4_address, count.index)}" } @@ -120,6 +121,7 @@ resource "digitalocean_record" "public_aaaa" { domain = "${var.public_domain}" type = "AAAA" + ttl = "60" name = "${element(digitalocean_droplet.droplet.*.name, count.index)}" value = "${element(digitalocean_droplet.droplet.*.ipv6_address, count.index)}" } @@ -130,6 +132,7 @@ resource "digitalocean_record" "private_a" { domain = "${var.private_domain}" type = "A" + ttl = "60" name = "${element(digitalocean_droplet.droplet.*.name, count.index)}" value = "${element(digitalocean_droplet.droplet.*.ipv4_address_private, count.index)}" }