Using Terraform Cloud as a private module registry
In the Using the remote backend in Terraform Cloud recipe found in this chapter, we learned how to use Terraform Cloud as a remote backend. It is centralized, secure, and free of charge.
In this book, we dedicated Chapter 7, Sharing Terraform Configuration with Modules, to the creation, usage, and sharing of Terraform modules. As a reminder, what we studied was publishing modules in the Terraform public registry, which is publicly accessible by all Terraform users, and sharing Terraform modules privately using a Git repository.
Concerning private module sharing, the Git repository system is efficient but does not offer a centralized platform for sharing and documenting modules as the public registry does. In order to provide companies with a private registry of their Terraform modules, HashiCorp has integrated this functionality into Terraform Cloud/Enterprise.
In this recipe, we will learn how to publish and use a Terraform...