From f87f0f5ba6fc73b0eccfc00eaa5bfc4df91c91e8 Mon Sep 17 00:00:00 2001 From: clint shryock Date: Wed, 1 Feb 2017 15:59:40 -0600 Subject: [PATCH] provider/aws: Fix permissions for IAM role in Lambda tests --- builtin/providers/aws/resource_aws_lambda_function_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_lambda_function_test.go b/builtin/providers/aws/resource_aws_lambda_function_test.go index c111ff5d86..c106b94898 100644 --- a/builtin/providers/aws/resource_aws_lambda_function_test.go +++ b/builtin/providers/aws/resource_aws_lambda_function_test.go @@ -670,7 +670,9 @@ resource "aws_iam_role_policy" "iam_policy_for_lambda" { { "Effect": "Allow", "Action": [ - "ec2:CreateNetworkInterface" + "ec2:CreateNetworkInterface", + "ec2:DescribeNetworkInterfaces", + "ec2:DeleteNetworkInterface" ], "Resource": [ "*"