
To define a virtual Terraform repository, do the following: This allows you to access both locally hosted Modules and Providers and remote proxied Terraform repositories from a single URL defined for the Virtual Repository. Setting up a Virtual Terraform RegistryĪ Virtual Repository defined in Artifactory aggregates packages from both local and remote repositories. When using Smart remote repositories, set the URL to /api/terraform/repokey/providersįor information on the common Remote repository fields, see Remote Repositories. The base URL of the Provider's storage API. When using Smart Remote Repositories, set the URL to /api/terraform/repokey Note that other Git Providers are not supported. It is recommended to select Github when pointing to the official HashiCorp Terraform Registry.

When using Smart remote repositories, set the URL to /repokey. Note that the Remote repository settings are identical for both Providers and Modules.įollow these guidelines regarding the specific Terraform settings. To specify that a Remote Repository supports Terraform packages, you will need to set its Package Type to Terraform when it is created. Remote Repositories enable you to proxy and cache your remote Terraform Modules and Providers packages.

Select Provider to apply the terraform-provider-defaul t repository layout.Select Module to apply the terraform-module-defaul t repository layout.In the Basic tab, from the Terraform Registry Type list:.Navigate to Repositories | Repositories | Local | New Local Repository and select Terraform as the Package Type.To create a Terraform Module/Provider local repository, navigate to the Administration module.Artifactory calculates the metadata for all packages and indexes them to allow users to download these packages through the Terraform CLI. Local repositories enable you to deploy the Terraform Module or Provider as a zip archive.

Setting up a Local Module/Provider Registry You can set up the following repository types: google/3.88.0/terraform-provider-google_3.88.0_darwin_amd64.zip Setting up a Terraform Module/Provider Registry
