github.com/xsb/terraform@v0.6.13-0.20160314145438-fe415c2f09d7/website/source/docs/state/remote/artifactory.html.md (about)

     1  ---
     2  layout: "remotestate"
     3  page_title: "Remote State Backend: artifactory"
     4  sidebar_current: "docs-state-remote-artifactory"
     5  description: |-
     6    Terraform can store the state remotely, making it easier to version and work with in a team.
     7  ---
     8  
     9  # artifactory
    10  
    11  Stores the state as an artifact in a given repository in [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  ## Example Usage
    20  
    21  ```
    22  terraform remote config \
    23  	-backend=artifactory \
    24  	-backend-config="username=SheldonCooper" \
    25  	-backend-config="password=AmyFarrahFowler" \
    26  	-backend-config="url=https://custom.artifactoryonline.com/artifactory" \
    27  	-backend-config="repo=foo" \
    28  	-backend-config="subpath=terraform-bar"
    29  ```
    30  
    31  ## Example Referencing
    32  
    33  ```
    34  resource "terraform_remote_state" "foo" {
    35  	backend = "artifactory"
    36  	config {
    37  		username = "SheldonCooper"
    38  		password = "AmyFarrahFowler"
    39  		url = "https://custom.artifactoryonline.com/artifactory"
    40  		repo = "foo"
    41  		subpath = "terraform-bar"
    42  	}
    43  }
    44  ```
    45  
    46  ## Configuration variables
    47  
    48  The following configuration options / environment variables are supported:
    49  
    50   * `username` / `ARTIFACTORY_USERNAME` (Required) - The username
    51   * `password` / `ARTIFACTORY_PASSWORD` (Required) - The password
    52   * `url` / `ARTIFACTORY_URL` (Required) - The URL. Note that this is the base url to artifactory not the full repo and subpath.
    53   * `repo` (Required) - The repository name
    54   * `subpath` (Required) - Path within the repository