def put_local_to_s3(client, local, bucket, key):
    with open(local, 'rb') as local_file:
        file_as_bytes = local_file.read()
        put_s3_object(client, bucket, key, file_as_bytes)
def put_local_to_s3(client, local, bucket, key):
    with open(local, 'rb') as local_file:
        file_as_bytes = local_file.read()
        put_s3_object(client, bucket, key, file_as_bytes)