Skip to content

Commit

Permalink
Merge pull request #59 from silinternational/feature/clean-up-lambda-…
Browse files Browse the repository at this point in the history
…role-policy

Remove the duplicate "..._global" resource from IAM policy
  • Loading branch information
forevermatt authored Aug 21, 2023
2 parents 2e6c9d4 + 5439f39 commit a291459
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions terraform/lambda-role-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
"dynamodb:GetItem"
],
"Resource": [
"arn:aws:dynamodb:*:${aws_account}:table/${api_key_table}",
"arn:aws:dynamodb:*:${aws_account}:table/${api_key_table}_global"
"arn:aws:dynamodb:*:${aws_account}:table/${api_key_table}"
],
"Effect": "Allow"
},
Expand All @@ -51,8 +50,7 @@
"dynamodb:DeleteItem"
],
"Resource": [
"arn:aws:dynamodb:*:${aws_account}:table/${webauthn_table}",
"arn:aws:dynamodb:*:${aws_account}:table/${webauthn_table}_global"
"arn:aws:dynamodb:*:${aws_account}:table/${webauthn_table}"
],
"Effect": "Allow"
}
Expand Down

0 comments on commit a291459

Please sign in to comment.