Skip to content
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

aws_s3_api doesn't work with Linode Object Storage #420

Open
ryanheise opened this issue Mar 23, 2024 · 4 comments
Open

aws_s3_api doesn't work with Linode Object Storage #420

ryanheise opened this issue Mar 23, 2024 · 4 comments

Comments

@ryanheise
Copy link

Linode Object Storage is compatible with S3, although this library doesn't support it because the S3() constructor does not permit configuring an endpoint URL without a service prefix.

I think it would be better to follow boto3 API design and allow explicitly passing in the service name as a parameter so that it doesn't need to be inferred from the URL.

@PeterMcKinnis
Copy link

I am using this with Linode, works great.

  var client = s3.S3(
      region: "",
      endpointUrl: "https://${config.endPoint}",
      credentials: s3.AwsClientCredentials(
          accessKey: config.accessKey, secretKey: config.secretKey);
}

@isoos
Copy link
Contributor

isoos commented May 16, 2024

@ryanheise: Have you tried https://pub.dev/packages/aws_client ? I'm not sure if there is a difference, but IIRC we don't really release aws_s3_api anymore, it is kind of deprecated.

@ryanheise
Copy link
Author

Oh, I didn't realise that!

I'll try aws_client (and failing that, I'll try @PeterMcKinnis 's snippet). Back in March, what I embarrassingly ended up doing was writing my own S3 library which is working fine. Probably not a wise thing to do in retrospect, but fortunately it was only a day's worth of distractions (200 lines), and I already had written some code to generate a presigned URL which aws_s3_api was missing, so I could reuse some of that code.

Does aws_client also have a method to generate presigned URLs?

@isoos
Copy link
Contributor

isoos commented May 17, 2024

Does aws_client also have a method to generate presigned URLs?

It is all generated 🙈. However, if you want to contribute the missing part, we may find a place for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants