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
Since the release of version 1.49.1, resource hcloud_server throws the following error, on terraform plan, when trying to fetch the id form hcloud_ssh_key data source:
╷
│ Error: Null value found in list
│
│ with module.hetzner_empty_instance[0].hcloud_server.server[0],
│ on ../../modules/hetzner/server/servers.tf line 15, in resource "hcloud_server" "server":
│ 15: ssh_keys = [data.hcloud_ssh_key.provider_ssh_key.id]
│
│ Null values are not allowed for this attribute value.
╵
What did you expect to happen?
The last working version of provider was 1.49.0. Where the id from the data source could be fetched by name.
I've hard coded the version of the provider to 1.49.0. Where things work as expected.
Please provide a minimal working example
data "hcloud_ssh_key" "provider_ssh_key" {
name = var.provider_ssh_key_name
}
resource "hcloud_server" "server" {
name = var.server_name
server_type = var.server_type
image = var.server_image
ssh_keys = [data.hcloud_ssh_key.provider_ssh_key.id]
}
The text was updated successfully, but these errors were encountered:
What happened?
Since the release of version
1.49.1
, resource hcloud_server throws the following error, onterraform plan
, when trying to fetch theid
form hcloud_ssh_key data source:What did you expect to happen?
The last working version of provider was
1.49.0
. Where theid
from the data source could be fetched by name.I've hard coded the version of the provider to
1.49.0
. Where things work as expected.Please provide a minimal working example
The text was updated successfully, but these errors were encountered: