-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing GeneratePresignedUrlRequest
S3 operation
#236
Comments
There is no http endpoint for this, so It has to be calculated locally, and the algorithm is subtly different from calculating the signatures for all the other 1000s of operations. It's something we've wanted to support, but just haven't had time to do it since it would require a bit of redesign. There is experimental work on the Yes, it would make sense to have an example if we could provide one, but right now there is no means for you to get all the information you'd need to build the request yourself. This is on our backlog, but it's not going to be resolved in the immediate near term. |
Given (ns x
(:import (java.util Date)
(java.time Clock Instant)
(com.amazonaws HttpMethod)
(com.amazonaws.services.s3 AmazonS3ClientBuilder)
(com.amazonaws.services.s3.model GeneratePresignedUrlRequest)))
(comment
(-> (AmazonS3ClientBuilder/standard)
(.build)
(.generatePresignedUrl (-> (GeneratePresignedUrlRequest. "<bucket-name>"
"<object/key>")
(.withMethod HttpMethod/GET)
(.withExpiration (-> (Clock/systemUTC)
(Instant/now)
(.plusSeconds 30)
(Date/from))))))
) The problem is, that we would need to duplicate the logic of creating this Java S3 client the same way (same AWS profile & region or other creds provider) we created the |
Dependencies
Description with failing test case
I was expecting to find this
GeneratePresignedUrlRequest
operation in the S3 API.Is it an oversight or it is not an actual HTTP API request, but something being computed locally?
Would it make sense to have an example in the documentation to show how to do this?
The text was updated successfully, but these errors were encountered: