HashiCorp Certified: Terraform Associate free question 10 / 10 · Domain 8: HCP Terraform
A platform team publishes a private module to its HCP Terraform organization's private registry. Who can use it, according to the private registry overview?
- Members of that organization only, as private modules are hosted on its registry.
- Members of every HCP Terraform organization that signs in at app.terraform.io.
- Only the owners team, since private modules are hidden from the other members.
- Anyone, because private modules are synchronized to the public Terraform Registry.
Show the answer and explanation
Answer: A
Why this is correct
The HCP Terraform private registry overview says the private registry works similarly to the public Terraform Registry and helps you share Terraform providers and modules across your organization, with support for versioning and a searchable list of available providers and modules. It covers two kinds of content. Public modules and providers are hosted on the public Terraform Registry, and HCP Terraform can automatically synchronize them to an organization's private registry; this lets you designate which public providers and modules are recommended for the organization and makes their documentation and examples centrally accessible. Private providers and private modules are hosted on an organization's private registry and are only available to members of that organization. In Terraform Enterprise, private providers and modules are also available to other organizations that are configured to share with that organization. Under Managing Usage, the page adds that you can create Sentinel policies to manage how members use modules, for example requiring all non-root modules to come from your own private registry, or requiring recent versions.
Why the other options are wrong
"Anyone, because private modules are synchronized to the public Terraform Registry." … The page describes synchronization in the other direction: public modules and providers hosted on the public Terraform Registry can be automatically synchronized to an organization's private registry.
"Members of every HCP Terraform organization that signs in at app.terraform.io." … The page says private modules are only available to members of that organization. Sharing with other organizations is described for Terraform Enterprise, for organizations configured to share with it.
"Only the owners team, since private modules are hidden from the other members." … The page says private providers and modules are available to members of that organization, and it describes the registry as a way to share them across your organization.
Private means the organization
Private registry content is available to members of that organization; public content can be synchronized in.