Skip to content

Commit 0fc98d4

Browse files
mfjarvisdlzhry2nhs
authored andcommitted
VED-1029: Set ACL when copying extended attributes files. (#1199)
* VED-1029: Set ACL when copying extended attributes files. * VED-1029: Allow PutObjectAcl action. * VED-1029: Change VPCE policy to allow PutObjectAcl action.
1 parent ef9d9b9 commit 0fc98d4

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

infrastructure/account/endpoints.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

infrastructure/instance/file_name_processor.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ resource "aws_iam_policy" "filenameprocessor_lambda_exec_policy" {
166166
{
167167
"Effect" : "Allow",
168168
"Action" : [
169-
"s3:PutObject"
169+
"s3:PutObject",
170+
"s3:PutObjectAcl"
170171
],
171172
"Resource" : ["arn:aws:s3:::${var.dspp_submission_s3_bucket_name}/*"]
172173
}

lambdas/shared/src/common/aws_s3_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)