Skip to content

Commit

Permalink
Replace key_path with private_key and file() interpolation.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinivanov committed Aug 30, 2016
1 parent 53149bd commit d9e9c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/google/consul.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ resource "google_compute_instance" "consul" {
}

connection {
user = "${lookup(var.user, var.platform)}"
key_path = "${var.key_path}"
user = "${lookup(var.user, var.platform)}"
private_key = "${file("${var.key_path}")}"
}

provisioner "file" {
Expand Down

0 comments on commit d9e9c71

Please sign in to comment.