github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/rancher/index.html.markdown (about) 1 --- 2 layout: "rancher" 3 page_title: "Provider: Rancher" 4 sidebar_current: "docs-rancher-index" 5 description: |- 6 The Rancher provider is used to interact with Rancher container platforms. 7 --- 8 9 # Rancher Provider 10 11 The Rancher provider is used to interact with the 12 resources supported by Rancher. The provider needs to be configured 13 with the URL of the Rancher server at minimum and API credentials if 14 access control is enabled on the server. 15 16 ## Example Usage 17 18 ```hcl 19 # Configure the Rancher provider 20 provider "rancher" { 21 api_url = "http://rancher.my-domain.com:8080" 22 access_key = "${var.rancher_access_key}" 23 secret_key = "${var.rancher_secret_key}" 24 } 25 ``` 26 27 ## Argument Reference 28 29 The following arguments are supported: 30 31 * `api_url` - (Required) Rancher API url. It must be provided, but it can also be sourced from the `RANCHER_URL` environment variable. 32 * `access_key` - (Optional) Rancher API access key. It can also be sourced from the `RANCHER_ACCESS_KEY` environment variable. 33 * `secret_key` - (Optional) Rancher API access key. It can also be sourced from the `RANCHER_SECRET_KEY` environment variable.