Process Flow - Provider caching and mirrors
Terraform Init Starts
Check Provider Source
Is Mirror Configured?
No→Download from Original Source
Yes
Redirect to Mirror URL
Download Provider
Cache Provider Locally
Use Cached Provider for Terraform Run
Terraform Run Continues
Terraform checks if a mirror is configured for a provider source. If yes, it downloads from the mirror and caches it locally for faster future use.