Skip to content

Commit

Permalink
Remove DynamoDB Scan capability for ecs task (#249)
Browse files Browse the repository at this point in the history
Co-authored-by: Kris Bloe <[email protected]>
  • Loading branch information
chrisbloe-nhse and chrisbloe authored Apr 2, 2024
1 parent 0306a9a commit 55b94ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions terraform/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ resource "aws_iam_role_policy_attachment" "ecs_dynamo_attach" {
data "aws_iam_policy_document" "transfer-tracker-db-indexes-access" {
statement {
actions = [
"dynamodb:Query",
"dynamodb:Scan"
"dynamodb:Query"
]
resources = [
"arn:aws:dynamodb:${var.region}:${data.aws_caller_identity.current.account_id}:table/${aws_dynamodb_table.transfer_tracker.name}/index/*"
Expand Down

0 comments on commit 55b94ff

Please sign in to comment.