We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd8b7e9 commit c09747bCopy full SHA for c09747b
backend/src/iac/backend-stack.ts
@@ -604,6 +604,25 @@ export class BackendStack extends cdk.Stack {
604
// Grant the task role access to the S3 bucket
605
uploadBucket.grantReadWrite(taskRole);
606
607
+ // Add more specific S3 permissions for file processing
608
+ taskRole.addToPolicy(
609
+ new iam.PolicyStatement({
610
+ effect: iam.Effect.ALLOW,
611
+ actions: [
612
+ 's3:GetObject',
613
+ 's3:PutObject',
614
+ 's3:DeleteObject',
615
+ 's3:ListBucket',
616
+ 's3:GetObjectTagging',
617
+ 's3:PutObjectTagging'
618
+ ],
619
+ resources: [
620
+ uploadBucket.bucketArn,
621
+ `${uploadBucket.bucketArn}/*`
622
623
+ })
624
+ );
625
+
626
// Outputs
627
new cdk.CfnOutput(this, 'ReportsTableName', {
628
value: reportsTable.tableName,
0 commit comments