Skip to content

Instantly share code, notes, and snippets.

import os
import boto3
s3_client = boto3.client('s3')
def upload_and_sign(file_path, bucket):
file_name = os.path.basename(file_path)
s3_client.upload_file(file_path, bucket, file_name)