Terraform Cloudflare

Hello,

I’m using Cloudflare’s Terraform provider to handle DNS Records for all my domains.
With more than 60 domains, and due to the big number of resources (DNS Records) to manage, I started to get rate limit errors from Cloudflare.
Also, applying Terraform changes is taking too long.

I’m thinking about splitting my Terraform repository into multiple ones. Can I do this without having to recreate all the resources from scratch?

Here’s a summary of my current structure:

Root

  • domain1
    ** main.tf
    ** vars.tf
    ** terraform.tf
  • domain2
    ** main.tf
    ** vars.tf
    ** terraform.tf
  • main.tf
  • vars.tf

Thanks