You can automatically provision and deploy to Hetzner Cloud servers in any supported location via Cloud 66.
How to add your Hetzner API key to Cloud 66
You need to add a Hetzner Cloud API key to your Cloud 66 account in order to integrate them. On Hetzner API keys are specific to “projects”. To generate an API key:
- Log into your Hetzner Cloud dashboard
- Either add a new project or click on an existing one
- Click on the key (Access) in the left-hand navigation
- Click on API Tokens at the top of the main panel
- Click the Generate API Token button (top right) and give your token a name (e.g. Cloud 66)
- Copy the API token and save it somewhere (it won’t ever be shown again by Hetzner)
- Log into your Cloud 66 dashboard and go to Account Settings → Cloud Keys.
- Click the green + and then select Hetzner as your cloud platform and follow the instructions to add your key.
Using multiple API keys with Hetzner
If you need your servers to be separated for different applications, you should create a separate project in your Hetzner Cloud account, create an API key for that project, and then add it to Cloud 66. Be sure to name your keys to make them easy to recognise and differentiate on both Hetzner and Cloud 66.
You will be able to choose between API keys (and therefore between your Hetzner projects) whenever you create a new application. However you cannot use an API key from a different project once an application has been created. It will always use the project that it was assigned to during initial setup.
Custom disk sizes aren’t supported
Hetzner Cloud does not allow custom disk sizes for new instances. As such any disk size specified in your configuration files or via the Dashboard will be ignored by Hetzner.
Support for older versions of Ubuntu
Hetzner doesn’t natively support Ubuntu 14.04, so only versions 16.04 and 18.04 are deployable through Cloud 66.
Cloud 66 tag propagation
Hetzner supports the propagation of (some) component tags from Cloud 66. This means that if you tag your servers in Cloud 66, those tags will be added to the corresponding servers on your Hetzner account (after some transformations).
For more details on how this works please read our full guide on the propagation of tags to cloud providers.