I am struggling getting the file provisioner to work, it seems the SSH connection fails:
resource "exoscale_compute" "master" {
name = "master"
diskSize = 10
template = "${lookup(var.master_template, var.zone)}"
zone = "${var.zone}"
size = "${var.master_instance_type}"
keypair = "${var.keypair}"
securitygroups = ["${exoscale_securitygroup.k8s.name}"]
connection {
user = "root"
private_key = "${file("${var.key_path}")}"
}
provisioner "file" {
source = "${path.module}/scripts/etcd"
destination = "/tmp/etcd"
}
...
I am struggling getting the file provisioner to work, it seems the SSH connection fails: