We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81fb980 commit e47a287Copy full SHA for e47a287
1 file changed
backend/src/iac/backend-stack.ts
@@ -176,6 +176,22 @@ export class BackendStack extends cdk.Stack {
176
}),
177
);
178
179
+ // Add Amazon Textract permissions for document analysis
180
+ taskRole.addToPolicy(
181
+ new iam.PolicyStatement({
182
+ effect: iam.Effect.ALLOW,
183
+ actions: [
184
+ 'textract:AnalyzeDocument',
185
+ 'textract:DetectDocumentText',
186
+ 'textract:GetDocumentAnalysis',
187
+ 'textract:StartDocumentAnalysis',
188
+ 'textract:StartDocumentTextDetection',
189
+ 'textract:GetDocumentTextDetection',
190
+ ],
191
+ resources: ['*'], // You may want to restrict this to specific resources in production
192
+ }),
193
+ );
194
+
195
// Task Definition with explicit roles
196
const taskDefinition = new ecs.FargateTaskDefinition(
197
this,
0 commit comments