Skip to content

Commit c31b1c6

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/npm-minor-patch-9e56d670cf
2 parents 7041e6c + c1e84a9 commit c31b1c6

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
@@ -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
}

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)