TA-002-P · Question #201
Eric needs to make use of module within his terraform code. Should the module always be public and open-source to be able to be used?
The correct answer is A. False. False - Terraform modules do NOT need to be public or open-source. They can be sourced from: local file paths (./modules/vpc), the public Terraform Registry (registry.terraform.io), private registries (including Terraform Cloud/Enterprise's private module registry), Git…
Question
Eric needs to make use of module within his terraform code. Should the module always be public and open-source to be able to be used?
Options
- AFalse
- BTrue
How the community answered
(22 responses)- A91% (20)
- B9% (2)
Explanation
False - Terraform modules do NOT need to be public or open-source. They can be sourced from: local file paths (./modules/vpc), the public Terraform Registry (registry.terraform.io), private registries (including Terraform Cloud/Enterprise's private module registry), Git repositories (GitHub, GitLab, Bitbucket) - including private repos using SSH keys or tokens, and cloud storage buckets (S3, GCS). Organizations routinely build and share proprietary internal modules through private registries or private VCS repos, keeping their infrastructure code confidential.
Topics
Community Discussion
No community discussion yet for this question.