Merge pull request #2313 from martinivanov/master
Replace key_path with private_key and file() interpolation in consul GCE terraform deployment.
This commit is contained in:
commit
f42333b945
|
@ -24,8 +24,8 @@ resource "google_compute_instance" "consul" {
|
||||||
}
|
}
|
||||||
|
|
||||||
connection {
|
connection {
|
||||||
user = "${lookup(var.user, var.platform)}"
|
user = "${lookup(var.user, var.platform)}"
|
||||||
key_path = "${var.key_path}"
|
private_key = "${file("${var.key_path}")}"
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
|
|
Loading…
Reference in New Issue