https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • j

    James

    05/01/2022, 6:58 PM
    Or you could write some of your own tooling in a Worker, etc.
  • j

    James

    05/01/2022, 6:59 PM
    But if you're looking for something to just work super easy out of the box, then I'd recommend following this channel and waiting until things are a little more generally available, and less private-beta-y.
  • v

    Vitali

    05/01/2022, 7:00 PM
    The stock s3 tools seem to work as long as you limit the concurrency to 2 or 3
  • v

    Vitali

    05/01/2022, 7:00 PM
    Or don’t use multipart
  • d

    darrennotfound

    05/01/2022, 7:00 PM
    I would try when it's in beta It's super hard to setup but it's fine
  • j

    James

    05/01/2022, 7:01 PM
    John has a pretty good doc going then about what works well with different things: https://gist.github.com/johnspurlock-skymethod/6027c81953f81aa535d889d86a1061ba I'd start there 🙂
  • d

    darrennotfound

    05/01/2022, 7:09 PM
    I got aws cli installed Reminder to myself /home/container/r2-cli/v2/2.6.1/bin/aws
  • e

    Erisa | Support Engineer

    05/01/2022, 7:12 PM
    Yeah the AWS CLI works the best, but you need to tame it as beelzabub mentioned and John documented quite a bit in that gist.
  • d

    darrennotfound

    05/01/2022, 7:18 PM
    How to set it up
  • j

    James

    05/01/2022, 7:21 PM
    Did you follow John's info? https://gist.github.com/johnspurlock-skymethod/6027c81953f81aa535d889d86a1061ba#aws-cli-official-amazon-cli. Where did you get stuck?
  • d

    darrennotfound

    05/01/2022, 7:22 PM
    It needs the auth info provided every command
  • e

    Erisa | Support Engineer

    05/01/2022, 7:22 PM
    R2 is still in beta so a lot of things still require experimenting for yourself and playing with it until it works, we can only help so much.
  • d

    darrennotfound

    05/01/2022, 7:22 PM
    Any alternative?
  • j

    James

    05/01/2022, 7:24 PM
    You could play with other S3 compatible tooling, but you're really not going to find anything that "just works" right now unfortunately. If you're open to tinkering, there's a lot of info in that doc and this channel which will allow you to get things up and running, but as @Erisa | Support Engineer said, it's going to take some experimentation on your end all the time things are in private beta and documentation and tooling is still being updated.
  • d

    darrennotfound

    05/01/2022, 7:26 PM
    John's guide doesn't told me how to auth first
  • d

    darrennotfound

    05/01/2022, 7:28 PM
    So I can't even use it
  • d

    darrennotfound

    05/01/2022, 7:28 PM
    Hmm I saw a s3 style config at the section before it
  • d

    darrennotfound

    05/01/2022, 7:28 PM
    Is it the config?
  • d

    darrennotfound

    05/01/2022, 7:30 PM
    @James don't need to sha256 token right?
  • i

    Isaac McFadyen | YYZ01

    05/01/2022, 7:30 PM
    Hey Darren, please don't ping people.
  • i

    Isaac McFadyen | YYZ01

    05/01/2022, 7:31 PM
    We've warned you about it before, and as James said, you need to either figure it out from the docs or wait until the tooling is improved for R2.
  • d

    darrennotfound

    05/01/2022, 7:31 PM
    Ok
  • e

    Erisa | Support Engineer

    05/01/2022, 7:32 PM
    You need to sha256 it in EVERY case that is using the S3 API right now.
  • e

    Erisa | Support Engineer

    05/01/2022, 7:32 PM
    You can make a file called
    ~/.aws/credentials
    and set
    Copy code
    [default]
    aws_access_key_id = apikeyid
    aws_secret_access_key = secretwithsha256
    You still need all of the other arguments, but this allows you to skip the credential ones.
  • d

    darrennotfound

    05/01/2022, 7:33 PM
    Can I save it anywhere else
  • e

    Erisa | Support Engineer

    05/01/2022, 7:33 PM
    No
  • v

    Vitali

    05/01/2022, 7:40 PM
    Seems like maybe it is customizable using environment variables? https://docs.aws.amazon.com/sdkref/latest/guide/file-location.html
  • v

    Vitali

    05/01/2022, 7:41 PM
    Probably useful if you are accessing multiple providers and need to pick which config to use
  • e

    Erisa | Support Engineer

    05/01/2022, 7:44 PM
    Ah right yeah I forgot about that
  • d

    darrennotfound

    05/01/2022, 7:44 PM
    Is token id changed every token reroll
1...101102103...1050Latest