TA-002-P · Question #432
Which of the following locations can Terraform use as a private source for modules? (Choose two.)
The correct answer is A. Internally hosted SCM (Source Control Manager) platform C. Private repository on GitHub. Terraform can source private modules from internal SCM platforms or private repositories on platforms like GitHub by using specific URL formats and appropriate authentication.
Question
Which of the following locations can Terraform use as a private source for modules? (Choose two.)
Options
- AInternally hosted SCM (Source Control Manager) platform
- BPublic Terraform Module Registry
- CPrivate repository on GitHub
- DPublic repository on GitHub
How the community answered
(20 responses)- A85% (17)
- B5% (1)
- D10% (2)
Why each option
Terraform can source private modules from internal SCM platforms or private repositories on platforms like GitHub by using specific URL formats and appropriate authentication.
Terraform can fetch modules from internally hosted SCM systems (like GitLab or Bitbucket Server) by providing the appropriate repository URL, making it a private source.
The Public Terraform Module Registry is, by definition, public and not a source for private modules, although it can host public modules.
A private repository on GitHub (or other Git-based services) can serve as a private module source if Terraform is configured with credentials to access it.
A public repository on GitHub can host modules, but they are publicly accessible, thus not considered a 'private source' in the context of securing the module code.
Concept tested: Terraform private module sources
Source: https://developer.hashicorp.com/terraform/language/modules/sources#git
Topics
Community Discussion
No community discussion yet for this question.