Set Up a Remote Terraform Registry

JFrog Artifactory Documentation

ft:sourceType
Paligo

Remote Repositories enable you to proxy and cache your remote Terraform Modules and Providers packages.

To specify that a Remote Repository supports Terraform packages, you will need to set its Package Type to Terraform when it is created.

Note that the Remote repository settings are identical for both Providers and Modules.

new_remote_repository.png

Follow these guidelines regarding the specific Terraform settings.

Field

Description

URL

The base URL of the Module storage API.

When using Smart remote repositories, set the URL to <base_Artifactory_URL>/repokey.

Git Providers

It is recommended to select Github when pointing to the official HashiCorp Terraform Registry.

Note that other Git Providers are not supported.

Registry URL

The base URL of the registry API.

When using Smart Remote Repositories, set the URL to <base_Artifactory_URL>/api/terraform/repokey

Providers URL

The base URL of the Provider's storage API.

When using Smart remote repositories, set the URL to <base_Artifactory_URL>/api/terraform/repokey/providers

For information on the common Remote repository fields, see Remote Repositories.

Note

Starting from version 7.39.4, The default Terraform behavior is to override the source URL when initializing a module. It is not recommended to disable this feature, but if you need to, you can do so by setting this system property:

artifactory.terraform.override.modules.source.hostname=false