diff --git a/src/lambda/sync-image/index.py b/src/lambda/sync-image/index.py index 1f6b6fba8..53e2cff16 100644 --- a/src/lambda/sync-image/index.py +++ b/src/lambda/sync-image/index.py @@ -34,5 +34,8 @@ def handler(event, context): # Get event payload and get imgs information key = event['Records'][0]['s3']['object']['key'] print(key) # Try out the code + board_id, ads_id = key.split('/') + print(board_id, ads_id) + return post_imgskey(key)