binbashar / leverage

Binbash Leverage CLI intended to orchestrate Leverage Reference Architecture for AWS (www.binbash.co/leverage)
https://pypi.org/project/leverage/
Apache License 2.0
17 stars 2 forks source link

Feature | Add support for the TF provider plugin cache #179

Closed Franr closed 1 year ago

Franr commented 1 year ago

Describe the Feature

The terraform CLI makes use of an environment variable called TF_PLUGIN_CACHE_DIR that set a directory to store and cache providers: https://developer.hashicorp.com/terraform/cli/config/config-file#provider-plugin-cache

Expected Behavior

If you have that variable set on your shell session, we expect leverage to translate it into the TF container env vars (and mount the directory too), to keep using the cache.