Generated a presigned URL to upload a file to an s3 bucket. Got status-code 403 with error message Access Denied when tried uploading with that presigned URL.
Note that presigned URLs are a URL format that embeds temporary tokens that is recognized by S3.
However, it is NOT an API call.
So when you call presign
operation, you merely construct a URL that is signed with your current credentials. Only when the URL is used, will S3 use the credentials embedded to access an object.
So, check whether your signing party has access to the object before generating presigned URLs. Otherwise you get a URL that is correctly formed, without permissions to access the object and will end up with "Access Denied".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With