IssueRaiser

Module cache

### Terraform Version ```shell Terraform v1.7.2 on linux_amd64 ``` ### Use Cases Currently whenever you use a remote module, terraform has to download it and put it in .terraform/modules. In cases where you have the same module used in many different workspaces, this results in wasting a lot of time and disk space downloading the same module over and over again. ### Attempted Solutions I don't really know of any solutions besides just re-downloading the file every time. Or maybe doing some kind of pre-download and changing the source of the module to point to the local file. But that doesn't work very well if you are using terraform cloud or enterprise to run terraform. ### Proposal Have a cache for modules similar to the [provider cache](https://developer.hashicorp.com/terraform/cli/config/config-file#provider-plugin-cache). ### References _No response_

Posted by tmccombs on Feb 7, 2024, 10:59 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

github (Other)

Module cache

tmccombsFeb 7, 2024, 10:59 PM

### Terraform Version ```shell Terraform v1.7.2 on linux_amd64 ``` ### Use Cases Currently whenever you use a remote module, terraform has to download it and put it in .terraform/modules. In cases where you have the same module used in many different workspaces, this results in wasting a lot of time and disk space downloading the same module over and over again. ### Attempted Solutions I don't really know of any solutions besides just re-downloading the file every time. Or maybe doing some kind of pre-download and changing the source of the module to point to the local file. But that doesn't work very well if you are using terraform cloud or enterprise to run terraform. ### Proposal Have a cache for modules similar to the [provider cache](https://developer.hashicorp.com/terraform/cli/config/config-file#provider-plugin-cache). ### References _No response_

Comments (0)

No comments yet. Start the discussion.

Comment on this issue