terraform-res
2023-12-18
Build initial Terraform module structure with DNS, website, and git_repo modules
34 files · 687+
Provider and root configuration
5 files changed
provider.tfConfigured Cloudflare, GoDaddy, GitHub, and external providers with version constraintsmain.tfRoot module wiring DNS and website modules with domain and site datavariables.tfInput variables for domains and sites data, API keys, and configurationlocals.tfLocal values for JSON-decoded domain and site dataoutputs.tfOutput definitions for module results
- Established multi-provider Terraform configuration with Cloudflare, GoDaddy (via n3integration provider), GitHub, and external data sources for managing domain infrastructure
instantiate
architectural
2 files
provider.tfmain.tf
DNS module
4 files changed
main.tfDNS record management module with for_each over domain recordsvariables.tfDNS module input variables for domain, records, and provider configoutputs.tfDNS module outputsprovider.tfDNS module provider requirements
- Created reusable DNS module handling record creation across providers using for_each iteration over domain JSON definitions
instantiate
behavioral
1 file
main.tf
Website module
3 files changed
main.tfWebsite deployment module for Cloudflare Pages or similarvariables.tfWebsite module variables for site configurationprovider.tfWebsite module provider requirements
- Created website module for managing static site deployments with domain-to-site mapping
instantiate
behavioral
1 file
main.tf
Git repo module
6 files changed
main.tfGitHub repository management modulevariables.tfGit repo module variablesoutputs.tfGit repo module outputsprovider.tfGit repo provider requirements.terraform.lock.hclTest lock file for git_repo moduletest_git_repo.tfTest configuration for git_repo module
- Created git_repo module for managing GitHub repositories as part of the infrastructure
instantiate
behavioral
1 file
main.tf
Domain and site data definitions
2 files changed
sites.jsonSite configuration data for initial domainsREQUIREMENTS.mdDetailed requirements document for the domain management system
- Defined initial domain and site JSON data structures with requirements document specifying the domain object model, hierarchical overrides, and data flow
specify
behavioral
2 files
REQUIREMENTS.mdsites.json
Bug report and screenshots
2 files changed
2023-12-18-bug-001.txtFirst bug report from initial testing2023-12-18_14-02-02.pngScreenshot from initial Terraform apply testing