From 50b181ae1253b899b6dc0e8e147655278c479ae6 Mon Sep 17 00:00:00 2001 From: Amit Bakshi Date: Mon, 21 Aug 2017 15:08:33 -0700 Subject: [PATCH] Use aws_iam_instance_profile.role instead of roles This is to fix the deprecation warning around using role instead of roles. --- aws.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws.tf b/aws.tf index def11e1..18ee66f 100644 --- a/aws.tf +++ b/aws.tf @@ -105,5 +105,5 @@ resource "aws_iam_policy_attachment" "consul-join" { # Create the instance profile resource "aws_iam_instance_profile" "consul-join" { name = "${var.namespace}-consul-join" - roles = ["${aws_iam_role.consul-join.name}"] + role = "${aws_iam_role.consul-join.name}" }