Search code examples
digital-oceancdn

Digital Ocean Spaces CDN - duplicate files to all regions automatically


I've set up a single DO 'Space' in the Europe region and I want to create identical spaces across all the other available regions. Ideally I would be able to just upload a file once, to one of the buckets, and it would automatically duplicate and sync with all the other regions. The end goal is a global CDN of sorts.

I haven't been able to find any solutions specific to DO which aren't just upload to all regions manually.


Solution

  • Digital Ocean doesn't have a built-in way to replicate a bucket across regions. You'll have to write a script to do this yourself.