This topic provides details on configuring Terraform/OpenTofu to work with Artifactory.
Pre-requisite: Before connecting your Terraform/OpenTofu client to Artifactory, you must have an existing Terraform repository in Artifactory. For more information, see Create Terraform/OpenTofu and Terraform Backend Repository
Supported Clients
Terraform CLI: 1.0.0 or above
OpenTofu CLI: TBD
Logged in vs. Anonymous User: You can work with Artifactory as either a logged in user or as an anonymous user. To work with Artifactory using Anonymous Access. You need to configure that access under Admin | Security | General. For details, refer to Allow Anonymous Access.
Note
You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.