I have uploaded some files to Amazon S3 using my program. Now I want enable server side encryption for all these files after they are already loaded to s3.
Is there a way to enable it using some property from the Amazon Console itself, so that all files use server side encryption? (I don't want to set property file by file as I have too many of these).
The other way I think would be to do it programmatically, download all files, and then upload again with encryption set. I really want to avoid this, unless there is no easier way.
I have explored s3 bucket policy a little bit but didn't find how to enable for data that is already loaded into s3.
答案 0 :(得分:3)
您必须逐个文件执行此操作,但不必下载并重新上传。只需为具有相同源和目标的每个文件发出复制命令,但启用加密标志。