terraform-res 2024-01-14
Extract domain logic from main.tf into locals.tf
3 files · 168+ · 69-

Domain logic extraction

3 files changed
  • locals.tf Massively expanded with domain processing, record merging, and computed mappings
  • main.tf Simplified to module calls using computed locals
  • outputs.tf Expanded output definitions
  • Extracted all domain data processing logic from main.tf into locals.tf, creating a clear pipeline from raw JSON through computed domain maps, record merges, and provider-specific configurations decouple architectural
    2 files
    • locals.tf
    • main.tf
  • Expanded outputs to expose domain processing results for debugging and downstream consumption interface internal
    1 file
    • outputs.tf