This works but the only problem is that it looks to be pretty slow because it has to load the…

    0

This works but the only problem is that it looks to be pretty slow because it has to load the object into memory first and then upload it to your S3 bucket. I think a better way to do it would be a direct bucket to bucket transfer directly on s3 using the .copy method as seen here: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Bucket.copy