The hcloud
Packer plugin is able to create new images for use with Hetzner
Cloud.
To install this plugin, copy and paste this code into your Packer configuration, then run packer init
.
packer {
required_plugins {
hcloud = {
source = "github.com/hetznercloud/hcloud"
version = "~> 1"
}
}
}
Alternatively, you can use packer plugins install
to manage installation of this plugin.
$ packer plugins install github.com/hetznercloud/hcloud
On the 7 November 2023, the Packer plugin source moved from github.com/hashicorp/hcloud
to github.com/hetznercloud/hcloud
, make sure to update your Packer configuration with the new source:
packer {
required_plugins {
hcloud = {
- source = "github.com/hashicorp/hcloud"
+ source = "github.com/hetznercloud/hcloud"
version = ">= 1.1.1"
}
}
}
- hcloud - The hcloud builder lets you create custom images on Hetzner Cloud by launching an instance, provisioning it, then export it as an image for later reuse.