From 622ddc656f3bd58ba800070aa99f0d8ccf09a047 Mon Sep 17 00:00:00 2001 From: spengreb Date: Mon, 23 Jan 2023 20:53:24 +0100 Subject: [PATCH] add condition for broadcast server --- dns.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dns.tf b/dns.tf index e3d02aa..bad731c 100644 --- a/dns.tf +++ b/dns.tf @@ -21,9 +21,10 @@ resource "digitalocean_record" "jam" { resource "digitalocean_record" "icecast" { + count = var.broadcast_enabled ? 1 : 0 domain = "vereto.net" type = "A" name = "icecast" ttl = 30 - value = "${aws_instance.broadcast.*.public_ip}" + value = "${aws_instance.broadcast.public_ip}" } \ No newline at end of file