简体   繁体   中英

Amazon S3 server side encryption of already loaded files

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.

You have to do this file-by-file, but you don't have to download and re-upload. Just issue a copy command for each file with the same source and destination, but with the encryption flag enabled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM