Open EunoTheBard opened 4 years ago
For this command I had to add -i priv_key to make the terraform function, is this something that can be fixed in a better way using some sort of variable?
-i priv_key
"cmd" "/C" "scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i priv_key root@167.71.181.205:minecraft-server.tar.gz uploadFolder"]
I fixed it by adding -i ${var.pvt_key}. See
-i ${var.pvt_key}
https://github.com/justin-p/IaC-DigitalOcean-Minecraft/blob/c60a67332d4574bcbcbde2360d3a085fedadc522/mc_serv.tf#L110
That repo also fixes some other issues I had with provisioning of the keys and the backup process.
For this command I had to add
-i priv_key
to make the terraform function, is this something that can be fixed in a better way using some sort of variable?"cmd" "/C" "scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i priv_key root@167.71.181.205:minecraft-server.tar.gz uploadFolder"]