fix: Reference data source for SSH key
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user