When you initialize Terraform, where does it cache modules from the public Terraform Module Registry?
When you initialize Terraform, where does it cache modules from the public Terraform Module Registry?
When you initialize Terraform, it caches modules from the public Terraform Module Registry on disk in the .terraform sub-directory. This directory is automatically managed by Terraform, created during initialization, and used to manage cached provider plugins and modules.
C is correct answer : hidden terraform directory "A hidden .terraform directory, which Terraform uses to manage cached provider plugins and modules, record which workspace is currently active, and record the last known backend configuration in case it needs to migrate state on the next run. This directory is automatically managed by Terraform, and is created during initialization." https://www.terraform.io/cli/init
on disk for sure for sure
On disk in the .terraform sub-directory - just to clarify.
Answer - C. It's stored in the .terraform directory.
C is the correct option
Answer is C
Answer C. On disk in the .terraform sub-directory
https://developer.hashicorp.com/terraform/language/modules/sources
C. On disk in the .terraform sub-directory