def upload(size_in_mb, bucket):
    file_name = '{}.tmp'.format(short_uid())
    path = '{}'.format(file_name)
    with open(path, 'wb') as f:
        f.seek(int((size_in_mb * 1000000.0)))
        f.write(b'\x00')
        f.flush()
        self.s3_client.upload_file(path, bucket, f'{file_name}', ExtraArgs={'StorageClass': 'DEEP_ARCHIVE'})
    os.remove(path)
def upload(size_in_mb, bucket):
    file_name = '{}.tmp'.format(short_uid())
    path = '{}'.format(file_name)
    with open(path, 'wb') as f:
        f.seek(int((size_in_mb * 1000000.0)))
        f.write(b'\x00')
        f.flush()
        self.s3_client.upload_file(path, bucket, f'{file_name}', ExtraArgs={'StorageClass': 'DEEP_ARCHIVE'})
    os.remove(path)