mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-23 13:02:55 -04:00
As explained in the changes: The 'enhanced' backend terminology, which only truly pertains to the 'remote' backend with a single API (Terraform Cloud/Enterprise's), has been found to be a confusing vestige which need only be explained in the context of the 'remote' backend. These changes reorient the explanation(s) of backends to pertain more directly to their primary purpose, which is storage of state snapshots (and not implementing operations). That Terraform operations are still _implemented_ by the literal `Backend` and `Enhanced` interfaces is inconsequential a user of Terraform, an internal detail.
1.6 KiB
1.6 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| language | Backend Type: artifactory | docs-backends-types-standard-artifactory | Terraform can store state in artifactory. |
artifactory
Stores the state as an artifact in a given repository in Artifactory.
Generic HTTP repositories are supported, and state from different configurations may be kept at different subpaths within the repository.
-> Note: The URL must include the path to the Artifactory installation.
It will likely end in /artifactory.
This backend does not support state locking.
Example Configuration
terraform {
backend "artifactory" {
username = "SheldonCooper"
password = "AmyFarrahFowler"
url = "https://custom.artifactoryonline.com/artifactory"
repo = "foo"
subpath = "terraform-bar"
}
}
Data Source Configuration
data "terraform_remote_state" "foo" {
backend = "artifactory"
config = {
username = "SheldonCooper"
password = "AmyFarrahFowler"
url = "https://custom.artifactoryonline.com/artifactory"
repo = "foo"
subpath = "terraform-bar"
}
}
Configuration variables
The following configuration options / environment variables are supported:
username/ARTIFACTORY_USERNAME(Required) - The usernamepassword/ARTIFACTORY_PASSWORD(Required) - The passwordurl/ARTIFACTORY_URL(Required) - The URL. Note that this is the base url to artifactory not the full repo and subpath.repo(Required) - The repository namesubpath(Required) - Path within the repository