Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.
/ terraform-cfdns Public archive

Manage CloudFlare DNS records with Terraform

Notifications You must be signed in to change notification settings

lukassup/terraform-cfdns

Repository files navigation

terraform-cfdns

Manage CloudFlare DNS records with Terraform Cloudflare provider.

USAGE

  1. Initialize Terraform with providers

     terraform init
    
  2. Setup credentials

     export CLOUDFLARE_EMAIL=your.email@domain.tld
     export CLOUDFLARE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    
  3. Apply

     terraform apply
    

ISSUES

  • Idempotency fails: Terraform DNS provider aggregates multiple entries to record sets after apply. Need to refactor records.yml structure to work with IP sets.
  • Issue with record ordering in records.yml. Inserting or deleting records cause changes to previous records.
  • Terraform DNS provider does not support @ (apex entries), nor zone root FQDNs for A, records (provider bug).
  • Remove secrets from DNS provider - setup variables and a .tfvars file.
  • TODO: PTR, TXT records

About

Manage CloudFlare DNS records with Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages