From 4a159fec495f9bd8f5c01211fa46050398bb5142 Mon Sep 17 00:00:00 2001 From: Martin Ivanov Date: Tue, 30 Aug 2016 12:27:05 +0300 Subject: [PATCH] Replace key_path with private_key and file() interpolation. --- terraform/google/consul.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/google/consul.tf b/terraform/google/consul.tf index 066f586c3..373a2a5d5 100644 --- a/terraform/google/consul.tf +++ b/terraform/google/consul.tf @@ -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" {