Skip to content

feat(terraform): add cloudflare-dns reusable module#1262

Open
dark-vex wants to merge 1 commit intomainfrom
feat/cloudflare-dns-module
Open

feat(terraform): add cloudflare-dns reusable module#1262
dark-vex wants to merge 1 commit intomainfrom
feat/cloudflare-dns-module

Conversation

@dark-vex
Copy link
Copy Markdown
Owner

Summary

  • Creates terraform/modules/cloudflare-dns/ reusable module accepting a zone ID and map of records
  • Refactors terraform/DNS/main.tf from 7 individual resources to 3 module calls (one per zone: ddlns_net, arl_fail, arlo_fail)
  • Includes 7 moved blocks for state migration of all existing records

Test plan

  • terraform fmt -check passes on module and caller
  • terraform init + terraform validate in terraform/DNS/
  • terraform plan shows zero changes (moved blocks handle migration)

🤖 Generated with Claude Code

Extracts Cloudflare DNS record management into a reusable module
at terraform/modules/cloudflare-dns/ and refactors terraform/DNS/
to use it with per-zone module calls. Includes moved blocks for
state migration of all 7 existing records.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant