Skip to content

Commit

Permalink
Update textract permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhukiran9999 committed Dec 12, 2024
1 parent f9df7cb commit 88739bf
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions modules/iam-users/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,6 @@ resource "aws_iam_policy" "lambda_permissions" {
"logs:PutLogEvents"
],
Resource = "arn:aws:logs:*:*:*"
},
{
"Effect" : "Allow",
"Action" : [
"textract:AnalyzeDocument",
"textract:DetectDocumentText",
"textract:GetDocumentAnalysis",
"textract:GetDocumentTextDetection",
"textract:StartDocumentAnalysis",
"textract:StartDocumentTextDetection"
],
"Resource" : "*"
}
]
})
Expand Down Expand Up @@ -259,7 +247,20 @@ resource "aws_iam_policy" "s3_full_access_boundary" {
"kms:Encrypt"
],
"Resource": "arn:aws:kms:*:*:key/*"
}
},
{
"Sid": "TextractAccess",
"Effect" : "Allow",
"Action" : [
"textract:AnalyzeDocument",
"textract:DetectDocumentText",
"textract:GetDocumentAnalysis",
"textract:GetDocumentTextDetection",
"textract:StartDocumentAnalysis",
"textract:StartDocumentTextDetection"
],
"Resource" : "*"
}
]
}
EOF
Expand Down

0 comments on commit 88739bf

Please sign in to comment.