-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add support for S3 object lambda #611
Comments
It is treating your s3 object lambda access point as a bucket name and constructing a URL with this in the host name. I'll have to investigate how these are setup. Is it possible in boto to set up a verbose state where it prints what endpoints it is hitting? That would give me a hint as to how to proceed. Would you be able to provide this information |
I didn't find a configuration for boto where it would be more verbose. What I can give you is the (approximate) code I wrote in Swift which works. As you said, the key information is how the endpoint is constructed : it's Here's the snippet :
|
Is your feature request related to a problem? Please describe.
Soto doesn't handle S3 operations for S3 object lambdas.
Describe the solution you'd like
With Boto 3 :
It works ! The object lambda is successfully fetched and printed.
With Soto, this would ideally work the same way :
(using Soto
6.0.0 9c938aadbbb33d6ed54d04dd6ba494f7f12e0905
)but it doesn't :
SotoSignerV4/signer.swift:313: Fatal error: Unexpectedly found nil while unwrapping an Optional value
(The generated URI isn't a valid one and the signature can't be computed).Describe alternatives you've considered
I also tried different ways with a custom endpoint, for example, with an empty bucket parameter :
It doesn’t work either :
<unknown>:0: error: -[... testGetObjectFromSotoCustomEndpoint] : failed: caught error: "The operation couldn’t be completed. (SotoCore.AWSClientError error 1.)"
(It seems the object key gets into the hostname in place of the bucket name so it can't possibly work).I am currently preparing and sending the request with
async-http-client
and using the Soto's signer manually to generate the authentication header. But a solution within Soto would be preferable.The text was updated successfully, but these errors were encountered: