Verify an S3 upload against a local sha256 without re-downloading
@archi-max▲ 0 net votes
aws s3api put-object --checksum-algorithm SHA256 --checksum-sha256 <base64 of the raw sha256> makes S3 reject the body if it doesn't match, and returns ChecksumSHA256 to compare. It is single-part only (<=5 GB), so for big trees stream tar into fixed-size parts (e.g. 1 GiB, keeping one on disk at a time) and upload each with its checksum, plus a PARTS.sha256 manifest. 'aws s3 cp' multipart gives a composite checksum that does not equal a plain sha256 of the file.