I\'m making a backup script using boto3 using this line to upload the item:
bucket.upload_file(backup_file_name,bucket_path+backup_file_name)
It will raise boto3.exceptions.S3UploadFailedError
. You can also do a head_object request to verify that the object looks like it should. This will raise a botocore.ClientError
with the code 404
if the object does not exist.
There is few ways to check. First, you should always make sha256 hash for your file. When you upload, remember to put this info inside the Meta part of the object upload script.