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

    vvo

    04/25/2023, 5:55 AM
    I am looking for documentation on the UsageSummary command seen in the documentation: https://developers.cloudflare.com/r2/pricing/#class-b-operations. But I can't find any information on what it does (usage related, sure).
  • l

    LordSilver

    04/25/2023, 8:28 AM
    Why do I need to provide a payment method for the free plan?
  • s

    Sid | R2

    04/25/2023, 10:00 AM
    Yep you can only use your custom domain for reads. The warnings exist to make sure you understand that anyone with the link to the object can view it (which might not be what you want if you’re storing sensitive content)
  • s

    Sid | R2

    04/25/2023, 10:03 AM
    R2 is usage-based with a free tier. Your card is only used if you overshoot it. We ask for one to make sure traffic to your bucket isn’t interrupted when/if you do overshoot
  • That’s mostly an API for the dashboard
    s

    Sid | R2

    04/25/2023, 10:04 AM
    That’s mostly an API for the dashboard, and is undocumented right now because I plan on changing it slightly. If you’re looking for a way to get bucket usage statistics, you might want to look into the GraphQL API instead.
    v
    • 2
    • 5
  • l

    LordSilver

    04/25/2023, 10:19 AM
    what if someone doesn't care if traffic gets interrupted and actually prefers that rather than paying?
  • l

    LordSilver

    04/25/2023, 10:20 AM
    can you set your account so that it does never exceed free tier usage?
  • h

    HardAtWork

    04/25/2023, 10:22 AM
    You can set alerts
  • h

    HardAtWork

    04/25/2023, 10:22 AM
    But afaik, you can't set hard limits
  • l

    LordSilver

    04/25/2023, 10:29 AM
    where you set those?
  • z

    zendev

    04/25/2023, 12:28 PM
    Thanks! Can you also add a domain to make reads from localhost during development or what’s the best way to handle that?
  • x

    Xathz

    04/25/2023, 1:17 PM
    I've been looking but I can't tell if the workers api supports r2 copying. I see its supported via s3
    CopyObject
    .
  • k

    kian

    04/25/2023, 1:18 PM
    The Workers API doesn't have copy, no
  • x

    Xathz

    04/25/2023, 1:18 PM
    Oh crap. Are there any plans of adding at some point?
  • c

    Cubox

    04/25/2023, 2:35 PM
    Hi, I have some R2 buckets that are empty on the web interface, but I can't delete them because they're not empty. What's happening?
  • h

    HardAtWork

    04/25/2023, 2:36 PM
    There might be some multipart uploads that are stuck. You can run a
    rclone prune REMOTE:/bucket
    to get rid of them.
  • c

    Cubox

    04/25/2023, 2:37 PM
    that must be it
  • c

    Cubox

    04/25/2023, 2:37 PM
    need to upgrade rclone to support prune but thanks
  • c

    Cubox

    04/25/2023, 2:38 PM
    do you mean purge?
  • h

    HardAtWork

    04/25/2023, 2:39 PM
    Sorry, I mixed them together. I meant
    cleanup
    , which shouldn't delete any completed objects, though in your case you can use either.
  • c

    Cubox

    04/25/2023, 2:45 PM
    thanks a lot
  • d

    dAn

    04/25/2023, 4:41 PM
    @jeromes sorry for the ping, is there any further steps i can take with this?
  • l

    LordSilver

    04/25/2023, 4:52 PM
    Does anyone know how to create an R2 bucket using CDKTF?
  • l

    LordSilver

    04/25/2023, 4:55 PM
    I could just find this: https://developers.cloudflare.com/r2/examples/terraform/
  • l

    LordSilver

    04/25/2023, 4:56 PM
    i think it's actually not supported yet
  • j

    jeromes

    04/25/2023, 5:01 PM
    @dAn hello sorry for the delay; I see the result of the sanity checks I asked, thank you. We need to have engineering investigate on the matter. I'll reach out to you tomorrow about that.
  • d

    dAn

    04/25/2023, 5:01 PM
    alright, thank you
  • l

    LordSilver

    04/25/2023, 5:22 PM
    Why R2 is implemented as an S3 bucket using AWS provider in Terraform? It's quite counter-intuitive. Even if you copied the API 1:1, I would have put that under Cloudflare provider.
  • u

    Unsmart | Tech debt

    04/25/2023, 6:08 PM
    Not sure what you mean?
  • s

    Sid | R2

    04/25/2023, 6:17 PM
    It's temporary, till R2 support lands in the official Cloudflare provider. We recommend the AWS provider right now because it can work against R2's S3-compatibility API to let you control buckets from Terraform in the time being.
1...100010011002...1050Latest