From 471ecddc97540afe33c62790bb168dd3f208a559 Mon Sep 17 00:00:00 2001 From: Eric Rosenberg Date: Sat, 24 Sep 2016 16:36:04 -0500 Subject: [PATCH] key_file is deprecated. Switching to private_key using the file() interpolation function. --- terraform/aws/consul.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/aws/consul.tf b/terraform/aws/consul.tf index 4b2481cc7..484b15831 100644 --- a/terraform/aws/consul.tf +++ b/terraform/aws/consul.tf @@ -7,7 +7,7 @@ resource "aws_instance" "server" { connection { user = "${lookup(var.user, var.platform)}" - key_file = "${var.key_path}" + private_key = "${file("${var.key_path}")}" } #Instance tags