terraform-res
2023-12-23
Refine DNS module with per-provider routing and variable restructuring
11 files · 219+ · 94-
Per-provider DNS routing
3 files changed
main.tfRefactored DNS record creation with provider-aware routing logicvariables.tfExpanded DNS module variables for provider selectionoutputs.tfUpdated outputs for multi-provider records
- Refactored DNS module to route record creation to the correct provider (Cloudflare or GoDaddy) based on domain configuration, enabling mixed-provider DNS management
decouple
behavioral
2 files
main.tfvariables.tf
Module provider declarations
5 files changed
provider.tfAdded explicit provider requirements for Cloudflare moduleprovider.tfAdded explicit provider requirements for GoDaddy modulevariables.tfExpanded Cloudflare module variablesvariables.tfExpanded GoDaddy module variablesmain.tfUpdated GoDaddy module resource definitions
- Added explicit required_providers blocks to Cloudflare and GoDaddy modules for proper provider inheritance
instantiate
internal
2 files
provider.tfprovider.tf
Domain data refinement
2 files changed
main.tfUpdated root module with refined module callsdomains.jsonRestructured domain JSON format
- Restructured domain JSON format and root module wiring for cleaner data passing between modules
streamline
behavioral
1 file
main.tf