• Stars
    star
    484
  • Rank 90,873 (Top 2 %)
  • Language
    Go
  • License
    Mozilla Public Li...
  • Created over 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Terraform Hetzner Cloud provider

Terraform Provider for the Hetzner Cloud

GitHub release Actions StatusActions Status

Requirements

  • Terraform 1.2.x
  • Go 1.19.x (to build the provider plugin)

API Stability

This Go module implements a Terraform Provider for Hetzner Cloud Services. We thus guarantee backwards compatibility only for use through Terraform HCL. The actual Go code in this repository may change without a major version increase.

Currently the code is mostly located in the hcloud package. In the long term we want to move most of the hcloud package into individual sub-packages located in the internal directory. The goal is a structure similar to HashiCorp's Terraform Provider Scaffolding

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

if you are building the provider, follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init to initialize it.

Developing the provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.14+ 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

In order to run the full suite of Acceptance tests run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc

More Repositories

1

cli

A command-line interface for Hetzner Cloud
Go
1,052
star
2

awesome-hcloud

A curated list of awesome libraries, tools, and integrations for Hetzner Cloud
926
star
3

hcloud-cloud-controller-manager

Kubernetes cloud-controller-manager for Hetzner Cloud
Go
690
star
4

csi-driver

Kubernetes Container Storage Interface driver for Hetzner Cloud Volumes
Go
611
star
5

hcloud-go

A Go library for the Hetzner Cloud API
Go
362
star
6

hcloud-python

A Python library for the Hetzner Cloud API
Python
262
star
7

apps

Hetzner Cloud Apps
Ruby
114
star
8

packer-plugin-hcloud

Packer plugin for Hetzner Cloud Builder
Go
22
star
9

kubecon-europe-2021

This repository is part of a live demo at KubeCon Europe 2021 that shows how different official integrations can be used to deploy a Kubernetes (k3s) cluster at Hetzner Cloud.
Jinja
19
star
10

hc-utils

A set of tools for the Hetzner Cloud platform
Shell
17
star
11

protractor-test-helper

Helper functions to make e2e testing with protractor more fun
TypeScript
15
star
12

ceph-s3-box

Containerized Ceph and Radosgw Playground
Shell
14
star
13

setup-hcloud

GitHub action to install the Hetzner Cloud CLI.
TypeScript
13
star
14

kubecon-europe-2022

This repository is part of a live demo at KubeCon Europe 2022 that shows how different official integrations can be used to deploy a Kubernetes (k3s) cluster at Hetzner Cloud.
Jinja
10
star
15

ngx-translate-mock

TypeScript
9
star
16

kubernetes-dev-env

Kubernetes development environment for our Integrations.
HCL
6
star
17

ansible-role-aptly

Ansible Role - Install and configure Aptly
Python
5
star
18

ansible-role-ipxe-ca

Ansible Role - Cross-Sign all Root CAs for iPXE
Python
5
star
19

cilium-tests

4
star
20

bnxt_en_xdp_redirect_reproducer

Simple reproducer for an eBPF XDP redirect issue we observe with BroadCom NetExtreme NICs (bnxt_en driver).
C
4
star
21

helm-charts

Helm Chart Repository for Hetzner Cloud projects
3
star
22

ngx-prepare-test-environment

TypeScript
3
star
23

fleeting-plugin-hetzner

Mirror of https://gitlab.com/hetznercloud/fleeting-plugin-hetzner
Go
1
star
24

tps-action

Github Action to setup a temporary Hetzner Cloud Token
Shell
1
star