Skip to content

Commit

Permalink
- Actually getting the key now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaellh0079 committed Dec 1, 2023
1 parent d0b6d0c commit aec8458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src_py/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ def scan_ed_pub(s3_client):


def handle_s3_event_message(event, s3_client):
object_key = event.get('Records')[0].get('s3').get('object')
object_key = event.get('Records')[0].get('s3').get('object').get('key')
s3_client.copy_object(
Bucket=destination_bucket,
CopySource={
'Bucket': source_bucket,
'Key': object_key
},
Key=object_key.get('key').split('/', 2)[-1]
Key=object_key.split('/', 2)[-1]
)


Expand Down

0 comments on commit aec8458

Please sign in to comment.