github.com/eliastor/durgaform@v0.0.0-20220816172711-d0ab2d17673e/website/docs/language/settings/backends/artifactory.mdx (about) 1 --- 2 page_title: 'Backend Type: artifactory' 3 description: Terraform can store state in artifactory. 4 --- 5 6 # artifactory (deprecated) 7 8 -> **Note:** The `artifactory` backend is deprecated and will be removed in a future Terraform release. 9 10 Stores the state as an artifact in a given repository in 11 [Artifactory](https://www.jfrog.com/artifactory/). 12 13 Generic HTTP repositories are supported, and state from different 14 configurations may be kept at different subpaths within the repository. 15 16 -> **Note:** The URL must include the path to the Artifactory installation. 17 It will likely end in `/artifactory`. 18 19 This backend does **not** support [state locking](/language/state/locking). 20 21 ## Example Configuration 22 23 ```hcl 24 terraform { 25 backend "artifactory" { 26 username = "SheldonCooper" 27 password = "AmyFarrahFowler" 28 url = "https://custom.artifactoryonline.com/artifactory" 29 repo = "foo" 30 subpath = "terraform-bar" 31 } 32 } 33 ``` 34 35 ## Data Source Configuration 36 37 ```hcl 38 data "terraform_remote_state" "foo" { 39 backend = "artifactory" 40 config = { 41 username = "SheldonCooper" 42 password = "AmyFarrahFowler" 43 url = "https://custom.artifactoryonline.com/artifactory" 44 repo = "foo" 45 subpath = "terraform-bar" 46 } 47 } 48 ``` 49 50 ## Configuration Variables 51 52 !> **Warning:** We recommend using environment variables to supply credentials and other sensitive data. If you use `-backend-config` or hardcode these values directly in your configuration, Terraform will include these values in both the `.terraform` subdirectory and in plan files. Refer to [Credentials and Sensitive Data](/language/settings/backends/configuration#credentials-and-sensitive-data) for details. 53 54 The following configuration options / environment variables are supported: 55 56 - `username` / `ARTIFACTORY_USERNAME` (Required) - The username 57 - `password` / `ARTIFACTORY_PASSWORD` (Required) - The password 58 - `url` / `ARTIFACTORY_URL` (Required) - The URL. Note that this is the base url to artifactory not the full repo and subpath. 59 - `repo` (Required) - The repository name 60 - `subpath` (Required) - Path within the repository