Home > Enterprise >  AWS - Amazon S3 documentation example not working SignatureDoesNotMatch
AWS - Amazon S3 documentation example not working SignatureDoesNotMatch

Time:06-21

I'm trying to generate a presigned URL with the exact code available on the documentation:

enter image description here

The full example is here:

https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/javav2/example_code/s3/src/main/java/com/example/s3/GeneratePresignedUrlAndUploadObject.java

Have you used the dependencies shown in the POM file in this Github location?

Other possible issues could be you set your S3 client object to the wrong region or have an issue with the key name as discussed here -- Amazon S3 - How to fix 'The request signature we calculated does not match the signature' error?.

  • Related