You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK, here it is (attached file with an attached .txt since github refuses .tf files as not supported, just remove the .txt suffix hetzner_debuga.tf.txt
).
Do
terraform init
terraform apply
which should run smoothly and succeed and create a cx22 machine.
Then change machine type from cx22 to cax11 and again, terraform apply.
terraform should now tear down the cx22 machine and replace it with a cax11, but it doesn't:
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
and then, of course, fails, since a x86 machine cannot be changed into an ARM machine just by changing attributes:
╷
│ Error: server type has incompatible architecture (invalid_server_type, 1719e2aab7fa2aa6)
│
│ with hcloud_server.debuga,
│ on hetzner_debuga.tf line 20, in resource "hcloud_server" "debuga":
│ 20: resource "hcloud_server" "debuga" {
│
╵
What happened?
I change the machine type of a server definition, and terraform tries to do that:
Terraform will perform the following actions:
hcloud_server.web_test[0] will be updated in-place
~ resource "hcloud_server" "web_test" {
id = "57374955"
name = "webtest1"
~ server_type = "cax11" -> "cx22"
# (20 unchanged attributes hidden)
}
which necessarily fails since you can't change the server_type inplace.
What did you expect to happen?
destroy and replace
Please provide a minimal working example
create a simple cax11 machine, then change the type to cx22.
The text was updated successfully, but these errors were encountered: