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

    Skye

    03/15/2023, 3:02 PM
    That's right, I meant it's not built into R2 at the moment
  • n

    nikitasius

    03/15/2023, 3:04 PM
    i have some challenge & fun ideas i wanna try with r2 & workers on my free time. I always appreaciated the fact that CF share pretty powerful tools and also premium no-brainer stuff. But you can always (there are still the exceptions but..) challenge a bit and obtain premium functionality on free plans. r2 & workers will be on paid plan 🙂
  • n

    nikitasius

    03/15/2023, 3:05 PM
    hope you will add it in future. S3 have really strong management.
  • n

    nikitasius

    03/15/2023, 3:06 PM
    @Skye btw, have a question. For R2 you can specify a geo zone where you will store the files. When files in europe are requested from someone out of europe (lets say USA), people from USA will get them from USA's endpoints or from european endpoints?
  • n

    nikitasius

    03/15/2023, 3:07 PM
    the data & the traffic still stays in europe?
  • s

    Skye

    03/15/2023, 3:08 PM
    Unless you're using the enterprise data localisation suite, traffic will generally enter cloudflare's network at the closest place to the user (in this case in the US), and travel to the destination within the network where it reaches the exit (in this case your bucket in Europe)
  • s

    Skye

    03/15/2023, 3:08 PM
    But it would still be stored in Europe of course
  • n

    nikitasius

    03/15/2023, 3:08 PM
    yep thats why i was asking (i know about this enterprise-only feature)
  • n

    nikitasius

    03/15/2023, 3:09 PM
    so no way lock traffic in europe (r2 & workers) w/o enterprise 😐 thanks!
  • s

    Sid | R2

    03/15/2023, 3:22 PM
    Are you looking for an EU / FedRAMP jurisdiction that forces your objects to stay in those regions? If so, this is coming pretty soon
  • s

    Sid | R2

    03/15/2023, 3:23 PM
    Object lifecycles are also close!
  • x

    xokaido

    03/15/2023, 3:32 PM
    How exactly do I do that, can you provide some instructions?..
  • n

    nikitasius

    03/15/2023, 3:58 PM
    with eu rules it's highly recommend that traffic stays in eu also. personal data - yep in eu. non-personal data - noone cares. and cause CF will route traffic out of europe and use non-european gateways, some traces of that data could leave europe.
  • n

    nikitasius

    03/15/2023, 3:58 PM
    lifecycles are verry verry welcome!
  • s

    Sid | R2

    03/15/2023, 4:16 PM
    Right yeah, the upcoming jurisdictions "feature" will take care of all this. It is a lot stricter than the location hints we have right now!
  • z

    Zeblote

    03/15/2023, 4:19 PM
    watch it be enterprise only
  • s

    Sid | R2

    03/15/2023, 4:27 PM
    Haha no the EU jurisdiction will be available for everyone!
  • n

    nikitasius

    03/15/2023, 4:57 PM
    probably you'll move that service feature out of enterprise plan^^
  • d

    denchi

    03/15/2023, 5:32 PM
    Hello everyone 👋
  • d

    denchi

    03/15/2023, 5:32 PM
    I was just wondering what's the best way to do lifecycle management for objects in R2.
  • d

    denchi

    03/15/2023, 5:33 PM
    As far as I can tell from previous discussions, that's planned but not officially supported yet?
  • d

    denchi

    03/15/2023, 5:36 PM
    I want all objects older than a day to be automatically deleted, so I set up a worker with a cron trigger that lists all objects in the buckets, checks the upload time, compares it to the current time and deletes any objects that are too old.
  • d

    denchi

    03/15/2023, 5:36 PM
    Is that the way to go?
  • e

    Erisa | Support Engineer

    03/15/2023, 5:36 PM
    As noted, object lifecycles are an upcoming feature that isn't out yet
  • e

    Erisa | Support Engineer

    03/15/2023, 5:36 PM
    For now, that sounds like a good way to go about it
  • d

    denchi

    03/15/2023, 5:37 PM
    Am I likely to run into any limits there? For example if there are 100k objects in the bucket.
  • e

    Erisa | Support Engineer

    03/15/2023, 5:38 PM
    Theres a max amount you can list with one call if I remember correctly
  • e

    Erisa | Support Engineer

    03/15/2023, 5:38 PM
    if you can catch that and list more, it shouldnt be a problem
  • d

    denchi

    03/15/2023, 5:39 PM
    Got it. I think there's also a limit of 1000 objects per .delete
  • d

    denchi

    03/15/2023, 5:40 PM
    Thanks a lot for the help 🙏
1...943944945...1050Latest