dnsimple / terraform-provider-dnsimple

Terraform DNSimple provider.
https://www.terraform.io/docs/providers/dnsimple/
Mozilla Public License 2.0
22 stars 20 forks source link

Introduce prefetch to avoid multiple calls to the API #50

Closed ecomba closed 2 years ago

ecomba commented 2 years ago

Some of our (larger) customers using terraform to manage a large set of zones have reported problems with getting to the limits of the API calls they are allowed to make (due to how terraform works and the call limits set in the API). This has been solved by setting different configurations in different directories and avoiding the API limits.

This is not ideal and we thought about the following.

We will introduce a new configuration variable prefetch. When prefetch is set to true the terraform provider will prefetch all the zone records of a given zone and store them in a local store to be used with the different operations (specifically when reading a zone record). This will reduce the calls to the API and therefore making the provider usable (without running into the API call limits) for larger configurations.