Terraform small trick to save a lot disk space in your dev machine
Add this line to your
plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"
By default, Terraform download and store the provider plugins inside
.terraform/plugins at your local project path.
So if you have a good amount of terraform projects, you are wasting disk space (>10G in my case) with mostly copies of the same plugins providers. And do not mention download time.
Fortunately, HashiCorp already thought on that: provider-plugin-cache
Enjoy it ;)