Skip to content

Commit

Permalink
🔧 Add ACL to copy (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary-H9 authored May 13, 2024
1 parent 49534cc commit 90f5735
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/var/task/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ def handler(event, context): # pylint: disable=unused-argument

try:
s3_client.copy_object(
Bucket=target_bucket, CopySource=copy_source, Key=destination_object_key
Bucket=target_bucket,
CopySource=copy_source,
Key=destination_object_key,
ACL="bucket-owner-full-control",
)
print(
f"Successfully copied {object_key} to {target_bucket}/{destination_object_key}"
Expand Down

0 comments on commit 90f5735

Please sign in to comment.