"""Upload the exported file to S3.""" import boto3 def upload_file_to_s3(filepath, bucket, key, file_id): """Upload file to S3.""" extra_args = {'Metadata': {'sales-file-id': file_id}} return boto3.client('s3').upload_file(filepath, bucket, key, extra_args)