Simply upload your new file on top of your old file to replace an old file in an S3 bucket. The existing file will be overwritten by your new file.
If your old file is located at s3:/fooname/barname.bin, you can replace it with a new one with the following command.
aws s3 cp ./barname.1.bin s3://fooname/barname.bin