Serving files on an S3 bucket through Cloudflare

I wanted to use S3 bucket files through the Cloudflare network, but ran into some problems. Integration instructions are given here , but they are only suitable for new buckets, since a bucket requires a name subdomain.domain.com, while my bucket is called domain.

Are there any other solutions for using CloudFlare with S3 without copying files from one bucket to another - for example, to configure some redirects, etc.? The problem is that my bucket contains more than 6 million files and occupies 200 GB of memory.

Amazon S3 pricing rules are also hard to understand. I'm struggling to find information on how much it costs to transfer information from one bucket to another if they are in the same place.

Thanks for answers.

+4
source share
1 answer

Unfortunately, Amazon S3 requires that the name cname matches the name of the bucket, as you already learned. So basically you will need to fix this name.

Here https://serverfault.com/questions/349460/how-to-move-files-between-two-s3-buckets-with-minimum-cost you can find how to copy files between buckets at minimal cost. Within the same zone and with the right tools, you will not incur bandwidth costs, only duplicated storage costs over time and access costs, details in the related answer.

cloudflare , : https://support.cloudflare.com/hc/en-us/articles/200168926-How-do-I-use-CloudFlare-with-Amazon-s-S3-Service-

+4

Source: https://habr.com/ru/post/1599310/


All Articles