provider plugin cache

An optional shared folder where Terraform keeps downloaded providers so several projects on one machine can reuse them.

In more detail

Without it, each configuration downloads its own copy of every provider into its .terraform directory. You turn it on with the TF_PLUGIN_CACHE_DIR environment variable or the plugin_cache_dir setting. A pipeline starts with an empty cache, which is one reason it can behave differently from your laptop.

Example

export TF_PLUGIN_CACHE_DIR="$HOME/.terraform.d/plugin-cache"

Related terms

Taught in

References

Certification courses