This repository has been archived by the owner. It is now read-only.
Terraform provider for Hetzner Cloud
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Rewrite docs to website format (#36) May 3, 2018
hcloud Initial technical review (#43) May 7, 2018
scripts Add release target (#11) Jan 30, 2018
vendor Initial technical review (#43) May 7, 2018
website Initial technical review (#43) May 7, 2018
.gitignore
.travis.yml Acceptance tests (#10) Jan 30, 2018
CHANGELOG.md Initial technical review (#43) May 7, 2018
GNUmakefile Hashi review 1 (#35) Mar 14, 2018
Gopkg.lock Initial technical review (#43) May 7, 2018
Gopkg.toml
LICENSE Initial technical review (#43) May 7, 2018
README.md Update README.md Jun 11, 2018
main.go Init Jan 23, 2018

README.md

DEPRECATED

The new home of this provider is here: https://github.com/terraform-providers/terraform-provider-hcloud

Terraform Provider for the Hetzner Cloud

GitHub release Build Status

Maintainers

This provider plugin is maintained by:

  • The Hetzner Cloud Team

Requirements

  • Terraform 0.11.x
  • Go 1.9 (to build the provider plugin)

Installing the provider

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/

Building the provider

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

Using the provider

See the Hetzner Cloud Provider documentation to get started using the Hetzner Cloud provider.

Developing the 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