Closed Sudokamikaze closed 4 years ago
Output from hcloud:
Image:
No Image
Similar server:
ID: 1
Type: system
Status: available
Name: ubuntu-16.04
Description: Ubuntu 16.04
Image size: -
Disk size: 5 GB
Created: Mon Jan 15 13:34:45 EET 2018 (2 years ago)
OS flavor: ubuntu
OS version: 16.04
Rapid deploy: yes
So, that snapshot was deleted way back in past, how to workaround this issue?
Hi, I ran into a similar issue. You can fix this via doing this:
resource "hcloud_server" "kurisu" {
name = "kurisu"
server_type = "cx11-ceph"
location = "fsn1"
image = "fedora-31"
lifecycle {
ignore_changes = [image]
}
}
You can basically set in image everything you want.. just set a lifecycle for it and ignore changes to it.
Hi there, I have an instance, which was provisioned from snapshot. When I do import from Hetzner, I have following piece of code in tfstate:
How to handle such behavior, is there any option to ignore
image
or usesnapshot
?