From 04f2c71c6da09576ca9c445d4ce735bb7da56060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Ole=20Hu=CC=88bner?= Date: Mon, 3 Feb 2025 10:41:24 +0100 Subject: [PATCH] chore: cleanup code --- main.tf | 9 +-------- outputs.tf | 3 +++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/main.tf b/main.tf index 6af9272..619ed02 100644 --- a/main.tf +++ b/main.tf @@ -19,9 +19,6 @@ locals { ]] ]) } -output "zones" { - value = length(local.zones) -} resource "hetznerdns_zone" "zone" { for_each = local.zones @@ -29,11 +26,6 @@ resource "hetznerdns_zone" "zone" { ttl = 300 } - - - - - resource "hetznerdns_record" "myrecord" { for_each = { for record in local.zone_data : "${record.record_type}${record.extra_data}-${record.record_name}.${record.zone_name}" => record } @@ -64,4 +56,5 @@ resource "hetznerdns_record" "ns" { type = "NS" value = each.value.ns_entry ttl = 300 + } \ No newline at end of file diff --git a/outputs.tf b/outputs.tf index e69de29..66655fa 100644 --- a/outputs.tf +++ b/outputs.tf @@ -0,0 +1,3 @@ +output "zones" { + value = length(local.zones) +} \ No newline at end of file