- Website: https://www.terraform.io
This provider plugin is maintained by:
- The Hetzner Cloud Team
To install the Hetzner Cloud Terraform provider use the binary distributions from the Releases page. The packages are available for the same OS/ARCH combinations as Terraform itself:
- Mac OS X
64-bit
- FreeBSD
32-bit
64-bit
Arm
- Linux
32-bit
64-bit
Arm
- OpenBSD
32-bit
64-bit
- Solaris
64-bit
- Windows
32-bit
64-bit
Download and uncompress the latest release for your OS. This example uses the linux binary for amd64.
$ wget https://github.com/hetznercloud/terraform-provider-hcloud/releases/download/v1.1.0/terraform-provider-hcloud_v1.1.0_linux_amd64.zip
$ unzip terraform-provider-hcloud_v1.1.0_linux_amd64.zip
Now copy the binary into the Terraform plugins folder.
$ mkdir -p ~/.terraform.d/plugins/
$ mv terraform-provider-hcloud ~/.terraform.d/plugins/
Clone repository to: $GOPATH/src/github.com/hetznercloud/terraform-provider-hcloud
$ mkdir -p $GOPATH/src/github.com/hetznercloud; cd $GOPATH/src/github.com/hetznercloud
$ git clone https://github.com/hetznercloud/terraform-provider-hcloud.git
Enter the provider directory and build the provider
$ cd $GOPATH/src/github.com/hetznercloud/terraform-provider-hcloud
$ make build
See the Hetzner Cloud Provider documentation to get started using the Hetzner Cloud provider.
If you wish to work on the provider, you'll first need Go installed on your machine (version 1.8+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin
to your $PATH
.
To compile the provider, run make build
. This will build the provider and put the provider binary in the $GOPATH/bin
directory.
$ make build
...
$ ./bin/terraform-provider-hcloud
...
In order to test the provider, you can simply run make test
.
$ make test