hetznercloud / packer-plugin-hcloud

Packer plugin for Hetzner Cloud Builder
https://developer.hashicorp.com/packer/integrations/hetznercloud/hcloud
Mozilla Public License 2.0
22 stars 21 forks source link

add pre validate step (check snapshot names) #17

Closed marco-m closed 2 years ago

marco-m commented 2 years ago

Before, it was possible to create multiple snapshots with the same name, leading to a confusing and wasteful situation.

Now, we perform the same kind of checks done by the AWS EC2 builder, and refuse to proceed if there is an existing snapshot with the same name.

Invoking packer build -force will bypass the checks, thus multiple snapshots with the same name will be allowed. This is equivalent to the previous behavior of this plugin.

Closes #14.

marco-m commented 2 years ago

Hello @nywilken, would you (or anybody from the Packer team) have time to look at this ? Thanks!