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

Within scope to add support for R2? #41

Closed
vlovich opened this issue May 19, 2022 · 2 comments
Closed

Within scope to add support for R2? #41

vlovich opened this issue May 19, 2022 · 2 comments

Comments

@vlovich
Copy link

vlovich commented May 19, 2022

Would it be possible to add R2 support to

function guessServiceRegion(url, headers) {
to make things easier on R2 users? I know this is an AWS-focused library so it's OK if the answer is no. Happy to help in any way I can.

The guessed region should be auto and the service would be s3 for <account>.r2.cloudflarestorage.com (or when using virtual bucket addressing, <bucket>.<account>.r2.cloudflarestorage.com)

@sodabrew
Copy link

There's no need to access R2 in this manner; direct bucket-to-script bindings are here: https://developers.cloudflare.com/r2/runtime-apis/

@mhart mhart closed this as completed in c4a92a5 Oct 4, 2022
@sodabrew
Copy link

sodabrew commented Oct 4, 2022

Oh, nice! Thank you!

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

2 participants