Skip to content

Commit

Permalink
NOBUG: Fixing read perms for indexes (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Truong authored Jan 27, 2022
1 parent af6c529 commit 487fe5f
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions terraform/src/roles.tf
Original file line number Diff line number Diff line change
Expand Up @@ -157,22 +157,30 @@ resource "aws_iam_role_policy" "park_reso_dynamodb" {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"dynamodb:BatchGet*",
"dynamodb:DescribeStream",
"dynamodb:DescribeTable",
"dynamodb:Get*",
"dynamodb:Query",
"dynamodb:Scan",
"dynamodb:BatchWrite*",
"dynamodb:CreateTable",
"dynamodb:Delete*",
"dynamodb:Update*",
"dynamodb:PutItem"
],
"Resource": "${aws_dynamodb_table.park_dup_table.arn}"
}
"Effect": "Allow",
"Action": [
"dynamodb:BatchGet*",
"dynamodb:DescribeStream",
"dynamodb:DescribeTable",
"dynamodb:Get*",
"dynamodb:Query",
"dynamodb:Scan",
"dynamodb:BatchWrite*",
"dynamodb:CreateTable",
"dynamodb:Delete*",
"dynamodb:Update*",
"dynamodb:PutItem"
],
"Resource": "${aws_dynamodb_table.park_dup_table.arn}"
},
{
"Effect": "Allow",
"Action": [
"dynamodb:Query",
"dynamodb:Scan"
],
"Resource": "${aws_dynamodb_table.park_dup_table.arn}/index/*"
}
]
}
EOF
Expand Down

0 comments on commit 487fe5f

Please sign in to comment.