fix: Reference data source for SSH key
Some checks failed
Deploy Cluster / Terraform (push) Failing after 23s
Deploy Cluster / Ansible (push) Has been skipped

This commit is contained in:
2026-02-28 22:04:57 +00:00
parent 27cb069101
commit 448e0e15f0

View File

@@ -10,7 +10,7 @@ resource "hcloud_server" "control_plane" {
server_type = var.control_plane_type
image = data.hcloud_image.ubuntu.id
location = var.location
ssh_keys = [hcloud_ssh_key.cluster.id]
ssh_keys = [data.hcloud_ssh_key.cluster.id]
labels = {
cluster = var.cluster_name
@@ -37,7 +37,7 @@ resource "hcloud_server" "workers" {
server_type = var.worker_type
image = data.hcloud_image.ubuntu.id
location = var.location
ssh_keys = [hcloud_ssh_key.cluster.id]
ssh_keys = [data.hcloud_ssh_key.cluster.id]
labels = {
cluster = var.cluster_name