Support Caching of Tofu/Terraform providers
Currently, for tofu/terraform workflows, spacelift runs run a tofu/terraform init to pull in all the providers from the internet. On stacks that have a lot of providers this can take a couple mins on each run. If I were running locally iterative plans / applies would not have this wait time since the providers are cached.
Request that there is some method to cache these providers across spacelift runs.
- Workaround
- Not that I am aware of
Log in to comment and vote
Comments2
SpaceliftUser
Mar 18, 2025
We’ve added documentation on setting up Provider caching here:
https://docs.spacelift.io/concepts/worker-pools#provider-caching
Teal Mongoose
Mar 18, 2025
Thanks! We’re not on private workers (yet!?) but I appreciate the docs and the general idea on how to get that done