HCloud

The HCloud provider implements the Hetzner Cloud API.

Configuration

Generate a Hetzner Cloud API token for your project, and set it in .env:

HCLOUD_TOKEN=mytoken

Then configure the provider in main.kz:

provider "hcloud" do |p|
  p.key = ENV.fetch("HCLOUD_TOKEN")
end

ENV is automatically populated with the values in .env.


Table of contents