Skip to content

Commit 3698d5c

Browse files
committed
update iam lambda user policy
1 parent b2d283a commit 3698d5c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

terraform/iam.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ resource "aws_iam_policy" "lambda_users_policy" {
5757
]
5858
Effect = "Allow"
5959
Resource = aws_dynamodb_table.users_table.arn
60+
},
61+
{
62+
Action = "dynamodb:Query"
63+
Effect = "Allow"
64+
Resource = "${aws_dynamodb_table.users_table.arn}/index/EmailIndex"
6065
}
6166
]
6267
})

0 commit comments

Comments
 (0)