W3cubDocs

/Terraform

Hetzner Cloud Provider

The Hetzner Cloud (hcloud) provider is used to interact with the resources supported by Hetzner Cloud. The provider needs to be configured with the proper credentials before it can be used.

Use the navigation to the left to read about the available resources.

Example Usage

# Set the variable value in *.tfvars file
# or using -var="hcloud_token=..." CLI option
variable "hcloud_token" {}

# Configure the Hetzner Cloud Provider
provider "hcloud" {
  token = "${var.hcloud_token}"
}

# Create a server
resource "hcloud_server" "web" {
  # ...
}

Argument Reference

The following arguments are supported:

  • token - (Required) This is the Hetzner Cloud API Token, can also be specified with the HCLOUD_TOKEN environment variable.
  • endpoint - Hetzner Cloud API endpoint, can be used to override the default API Endpoint https://api.hetzner.cloud/v1.

© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/hcloud/index.html