Skip to content

Commit 47dc230

Browse files
Always add lambda.amazonaws.com id (#17)
* Always add lambda.amazonaws.com id * Auto Format Co-authored-by: cloudpossebot <[email protected]>
1 parent c0a8be8 commit 47dc230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iam-role.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ data "aws_iam_policy_document" "assume_role_policy" {
1313

1414
principals {
1515
type = "Service"
16-
identifiers = var.lambda_at_edge ? ["edgelambda.amazonaws.com"] : ["lambda.amazonaws.com"]
16+
identifiers = concat(["lambda.amazonaws.com"], var.lambda_at_edge ? ["edgelambda.amazonaws.com"] : [])
1717
}
1818
}
1919
}

0 commit comments

Comments
 (0)