Skip to content

Commit

Permalink
Merge pull request #15 from ribeirogab/feature/improve-email
Browse files Browse the repository at this point in the history
feat: update dynamodb permissions for lambda execution
  • Loading branch information
ribeirogab authored Sep 21, 2024
2 parents 052eb86 + cfda93f commit abd3bb4
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 abd3bb4

Please sign in to comment.