aws-sdk-js icon indicating copy to clipboard operation
aws-sdk-js copied to clipboard

createPresignedPost - access denied error

Open vieirai opened this issue 4 years ago • 1 comments

Confirm by changing [ ] to [x] below:

  • [ ] This is a feature with version 2.x of the SDK

Is your feature request related to a problem? Please describe. A lambda without s3:putObject permissions can do s3.createPresignedPost and will receive what appears to be a valid upload config. However, once we try to use the parameters returned by createPresignedPost to upload anything, we're faced with a 403 - Access Denied error and it's really confusing where the access problem actually is.

Describe the solution you'd like If a lambda without s3:putObject permissions tries to generate s3 signed POST URLs, then a permissions error should be thrown right then and there.

Describe alternatives you've considered Maybe a better error message as opposed to the very generic Access denied?

Additional context N/A

vieirai avatar Nov 26 '21 16:11 vieirai

Thanks for bringing this up, you saved me more hours on already many wasted!

jo-sip avatar Feb 22 '22 00:02 jo-sip

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

github-actions[bot] avatar Feb 22 '23 00:02 github-actions[bot]