terraform initretrieves and caches providers and modules, butonly for explicitly declared modulesin the configuration.
If a module isadded or updated, terraform init needs to be re-run to download the new version.
Terraform does not automatically cache all remote modules unless they are explicitly referenced in the configuration.
Official Terraform Documentation Reference:
terraform init - HashiCorp Documentation
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit