1import boto3
2session = boto3.session.Session()
3
4s3 = session.client(
5 service_name='s3',
6 endpoint_url='http://localhost:4566',
7 )
8bucket_name = "mybucket"
9s3.upload_fileobj(uploadedFile, bucket_name, file_name)
10