Provider Caching for Private Workers (EC2 & Kubernetes)
We’re experiencing significant slowdowns because private workers must download all Terraform/OpenTofu providers on every run. This adds minutes of overhead to each execution, especially for EC2-based workers with slower cold starts. We cannot currently cache providers between runs in a reliable or native way, and our attempts to work around it (e.g., custom Docker images) are slow and error-prone.
Ideally a native provider caching support on private workers would be very helpful - ideally across both EC2 and Kubernetes worker models.
Log in to comment and vote
Comments3
Cyan Crab
Nov 24, 2025
The Spacelift docs do have some suggestions for provider caching, but it’s been difficult to implement for EC2 workers (spacelift-io/terraform-aws-spacelift-workerpool-on-ec2#127).