Open source Terraform can only import publicly-accessible and open-source modules.
Open source Terraform can only import publicly-accessible and open-source modules.
Open source Terraform can import modules from both public and private repositories. It supports importing modules from sources such as the Terraform Registry, GitHub, GitLab, and Bitbucket, among others. Therefore, it is not restricted to only publicly-accessible and open-source modules.
Terraform can load modules from a public or private registry. This makes it possible to publish modules for others to use, and to use modules that others have published. Also, members of your organization might produce modules specifically crafted for your own infrastructure needs. Terraform Cloud and Terraform Enterprise both include a private module registry for sharing modules internally within your organization. Source: https://www.terraform.io/language/modules
Published Modules In addition to modules from the local filesystem, Terraform can load modules from a public or private registry. This makes it possible to publish modules for others to use, and to use modules that others have published. The Terraform Registry hosts a broad collection of publicly available Terraform modules for configuring many kinds of common infrastructure. These modules are free to use, and Terraform can download them automatically if you specify the appropriate source and version in a module call block. Also, members of your organization might produce modules specifically crafted for your own infrastructure needs. Terraform Cloud and Terraform Enterprise both include a private module registry for sharing modules internally within your organization. Answer is B
B. False. Open source Terraform can import both publicly-accessible and private modules from various sources, including Terraform Registry, GitHub, GitLab, Bitbucket, and others. However, the support for private modules is limited in the open source version, while it's fully supported in Terraform Enterprise.
It's A! Don't confuse Terraform Open Source with Cloud/Enterprise. https://developer.hashicorp.com/terraform/intro/terraform-editions https://www.hashicorp.com/resources/why-consider-terraform-enterprise-over-open-source
module "suvpc" { source = "git::https://user:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4232233131352d302602252b362a37206c212d2f">[email protected]</a>/example/vpc.git" }
https://www.hashicorp.com/resources/why-consider-terraform-enterprise-over-open-source
False as it can be from anywhere
The Correct answer is B
Private repo for custom modules.