First sync the buckets using a software that can do it (aws cli, s3cmd, etc) and then do a Replace a string in all posts