简体   繁体   中英

Automatically move file from one bucket to another bucket and make public in Amazon S3

I have two bucket in Amazon S3. one bucket mail.example1.com and it is used by Amazon SES to store email raw file . I have another bucket example2.com with two folder. One is files for storing files and another is mail folder . I want when a mail will store in mail.example1.com bucket, it will automatically move to mail folder in example2.com bucket and it excess will be public .

I really need help.

Set example2.com bucket policy for public access and if you want manual replication form example1.com to example2.com execute below command.

aws s3 sync s3://example1.com s3://example2.com

or if you want it to be automated go with Lambda functions.

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