add route
This commit is contained in:
@@ -14,7 +14,9 @@ transport_params = {'client': s3_client}
|
||||
@event_source(data_class=EventBridgeEvent)
|
||||
def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
new_image = event.detail['new_image']
|
||||
csvfile = new_image['s3uri']
|
||||
csvfile = new_image['s3_uri']
|
||||
pairs = byte_ranges(csvfile, CHUNK_SIZE, transport_params=transport_params)
|
||||
|
||||
print(pairs)
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user