Provide the cfg to the create-cluster method

This commit is contained in:
2025-09-27 21:02:43 -05:00
parent 6a1942c684
commit 91c7ea8797

View File

@@ -57,9 +57,8 @@
"fi\n\n" "fi\n\n"
"echo '--- Finished worker install ---'\n")) "echo '--- Finished worker install ---'\n"))
(defn create-cluster [] (defn create-cluster [cfg]
(let [cfg (pulumi/Config.) (let [ssh-key (.require cfg "sshKeyName")
ssh-key (.require cfg "sshKeyName")
personal-key (.require cfg "sshPersonalKeyName") personal-key (.require cfg "sshPersonalKeyName")
priv-key (.requireSecret cfg "privateKeySsh") priv-key (.requireSecret cfg "privateKeySsh")