Skip to content

rwlincoln/terraform-provider-hcloud

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:/hetznercloud/terraform-provider-hcloud/releases/download/v1.0.0/terraform-provider-hcloud_v1.0.0_linux_amd64.zip
$ unzip terraform-provider-hcloud_v1.0.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 [email protected]:hetznercloud/terraform-provider-hcloud

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

About

Terraform provider for Hetzner Cloud

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 87.8%
  • Makefile 7.8%
  • Shell 4.4%