Replace key_path with private_key and file() interpolation.

This commit is contained in:
Martin Ivanov 2016-08-30 12:27:05 +03:00
parent 29e52307cb
commit 4a159fec49
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ resource "google_compute_instance" "consul" {
connection {
user = "${lookup(var.user, var.platform)}"
key_path = "${var.key_path}"
private_key = "${file("${var.key_path}")}"
}
provisioner "file" {