layout | page_title | sidebar_current | description |
---|---|---|---|
rancher |
Provider: Rancher |
docs-rancher-index |
The Rancher provider is used to interact with Rancher container platforms. |
The Rancher provider is used to interact with the resources supported by Rancher. The provider needs to be configured with the URL of the Rancher server at minimum and API credentials if access control is enabled on the server.
# Configure the Rancher provider
provider "rancher" {
api_url = "http://rancher.my-domain.com:8080"
access_key = "${var.rancher_access_key}"
secret_key = "${var.rancher_secret_key}"
}
The following arguments are supported:
api_url
- (Required) Rancher API url. It must be provided, but it can also be sourced from theRANCHER_URL
environment variable.access_key
- (Optional) Rancher API access key. It can also be sourced from theRANCHER_ACCESS_KEY
environment variable.secret_key
- (Optional) Rancher API access key. It can also be sourced from theRANCHER_SECRET_KEY
environment variable.