Skip to main content
[Spacelift.io] Terraform Private Registry: Setup, Publishing & Best Practices

[Spacelift.io] Terraform Private Registry: Setup, Publishing & Best Practices

·200 words·1 min

I’ve written a blog post on working setting up and working with a Terraform registry:

Terraform configurations consist of resources, data sources, variables, outputs, local values, and more. We often group resources and data sources together into reusable modules. A module is not reusable if it is not easily available for other Terraform consumers to discover and use.

Terraform has a large ecosystem of publicly available providers. Some of the most prominent are for the hyperscalers AWS, Microsoft Azure, and Google Cloud. If your organization has an internal product or API that you want to interact with using your normal Terraform workflows, you can write your own providers. To make this provider available for your internal Terraform consumers, you need to publish it somewhere.

To solve both of these issues, we can use a Terraform private registry. In a private registry, you publish internal modules and providers intended for use within your organization.

This blog post is a guide to the Terraform private registry. In the following sections, we will explore what a private registry is, the options available for hosting or using one, and best practices to follow when working with one.

Read more at spacelift.io/blog/terraform-private-registry

Mattias Fjellström
Author
Mattias Fjellström
Cloud architect · Author · HashiCorp Ambassador · Microsoft MVP