I am unable to upload an S3 object into an S3 bucket. I have used the command below:
aws s3api put-object --bucket=opsops --key=Cloudformation_upload.csv --body=Cloudformation.csv --sse-customer-algorithm=AES256 --sse-customer-key=MTIzNDU2Nzg5MGFiY2Rl --customer-key-md5=NTgwMWMzMzJiNGU1YmE5YzBhMjk3ZDYwYmI1MWNjNzI="
But when I upload the object gives this error:
Note:Customer-key and customer-key-MD5 values are encoded with 64bits value.Please help me to resolve this.
A client error (InvalidArgument) occurred when calling the PutObject operation: The calculated MD5 hash of the key did not match the hash that was provided