key_file is deprecated. Switching to private_key using the file() interpolation function.

This commit is contained in:
Eric Rosenberg 2016-09-24 16:36:04 -05:00
parent aa701e49a1
commit 471ecddc97
1 changed files with 1 additions and 1 deletions

View File

@ -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