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