How to make 10,000 files in S3 public

前端 未结 9 958
梦如初夏
梦如初夏 2020-12-04 07:07

I have a folder in a bucket with 10,000 files. There seems to be no way to upload them and make them public straight away. So I uploaded them all, they\'re private, and I ne

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 07:53

    Had this need myself but the number of files makes it WAY to slow to do in serial. So I wrote a script that does it on iron.io's IronWorker service. Their 500 free compute hours per month are enough to handle even large buckets (and if you do exceed that the pricing is reasonable). Since it is done in parallel it completes in less than a minute for the 32,000 objects I had. Also I believe their servers run on EC2 so the communication between the job and S3 is quick.

    Anybody is welcome to use my script for their own needs.

提交回复
热议问题