From c9e4aeb8d6cfa2302e775bc82f2b8b203b939ea2 Mon Sep 17 00:00:00 2001 From: beatz174-bit Date: Wed, 13 May 2026 05:28:27 +1000 Subject: [PATCH] Add dynu_record_import_id variable for record imports --- infrastructure/terraform/dynu/README.md | 1 + infrastructure/terraform/dynu/imports.tf.example | 2 +- infrastructure/terraform/dynu/terraform.tfvars.example | 1 + infrastructure/terraform/dynu/variables.tf | 6 ++++++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/infrastructure/terraform/dynu/README.md b/infrastructure/terraform/dynu/README.md index f2da1cd..e71aceb 100644 --- a/infrastructure/terraform/dynu/README.md +++ b/infrastructure/terraform/dynu/README.md @@ -17,6 +17,7 @@ Use local `terraform.tfvars` (or provider-supported environment variables). - Required variable: `dynu_api_key` - Domain variable: `dynu_root_domain` (defaults to `lan.ddnsgeek.com`) - Optional placeholders for future provider auth changes: `dynu_username`, `dynu_password` +- Import helper variable: `dynu_record_import_id` (set per record import operation) Never commit: diff --git a/infrastructure/terraform/dynu/imports.tf.example b/infrastructure/terraform/dynu/imports.tf.example index f16c231..d41f3df 100644 --- a/infrastructure/terraform/dynu/imports.tf.example +++ b/infrastructure/terraform/dynu/imports.tf.example @@ -12,5 +12,5 @@ import { # # import { # to = dynu_dns_record.grafana_lan_ddnsgeek_com -# id = "REPLACE_WITH_DYNU_RECORD_IMPORT_ID" +# id = var.dynu_record_import_id # } diff --git a/infrastructure/terraform/dynu/terraform.tfvars.example b/infrastructure/terraform/dynu/terraform.tfvars.example index a68819a..0ba977f 100644 --- a/infrastructure/terraform/dynu/terraform.tfvars.example +++ b/infrastructure/terraform/dynu/terraform.tfvars.example @@ -4,3 +4,4 @@ dynu_username = null dynu_password = null dynu_root_domain = "lan.ddnsgeek.com" +dynu_record_import_id = "REPLACE_WITH_DYNU_RECORD_IMPORT_ID" diff --git a/infrastructure/terraform/dynu/variables.tf b/infrastructure/terraform/dynu/variables.tf index 4b6b24c..1379c57 100644 --- a/infrastructure/terraform/dynu/variables.tf +++ b/infrastructure/terraform/dynu/variables.tf @@ -25,3 +25,9 @@ variable "dynu_password" { sensitive = true default = null } + +variable "dynu_record_import_id" { + description = "Placeholder import ID for a single dynu_dns_record during one-at-a-time reconciliation." + type = string + default = "REPLACE_WITH_DYNU_RECORD_IMPORT_ID" +}