Skip to content

Commit

Permalink
feat: update dynamodb permissions for lambda execution
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirogab committed Sep 21, 2024
1 parent 916d65f commit cfda93f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions infra/lambda/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,11 @@ resource "aws_iam_role" "lambda_exec_role" {
"dynamodb:Query",
"dynamodb:Scan"
]
Effect = "Allow"
Resource = "${aws_dynamodb_table.auth_resource_table.arn}"
Effect = "Allow"
Resource = [
"${aws_dynamodb_table.auth_resource_table.arn}",
"${aws_dynamodb_table.auth_resource_table.arn}/index/ReferenceIdIndex"
]
},
{
Action = [
Expand Down

0 comments on commit cfda93f

Please sign in to comment.