File tree Expand file tree Collapse file tree
lambdas/shared/src/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ resource "aws_vpc_endpoint" "s3_endpoint" {
9898 " s3:PutObject" ,
9999 " s3:ListBucket" ,
100100 " s3:CopyObject" ,
101- " s3:DeleteObject"
101+ " s3:DeleteObject" ,
102+ " s3:PutObjectAcl"
102103 ]
103104 Resource = " *"
104105 }
Original file line number Diff line number Diff line change @@ -167,7 +167,8 @@ resource "aws_iam_policy" "filenameprocessor_lambda_exec_policy" {
167167 {
168168 " Effect" : " Allow" ,
169169 " Action" : [
170- " s3:PutObject"
170+ " s3:PutObject" ,
171+ " s3:PutObjectAcl"
171172 ],
172173 " Resource" : [" arn:aws:s3:::${ var . dspp_submission_s3_bucket_name } /*" ]
173174 }
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ def copy_file_to_external_bucket(
3030 Key = destination_key ,
3131 ExpectedBucketOwner = expected_bucket_owner ,
3232 ExpectedSourceBucketOwner = expected_source_bucket_owner ,
33+ ACL = "bucket-owner-full-control" ,
3334 )
3435
3536
You can’t perform that action at this time.
0 commit comments