[英]Copy files from s3 bucket to another AWS account
Is it possible to send/sync files from source AWS S3 bucket into destination S3 bucket on a different AWS account, in a different location? 是否可以将文件从源AWS S3存储桶发送/同步到其他AWS账户中不同位置的目标S3存储桶中?
I found this: https://aws.amazon.com/premiumsupport/knowledge-center/copy-s3-objects-account/ 我发现了这个: https : //aws.amazon.com/premiumsupport/knowledge-center/copy-s3-objects-account/
But if I understand it correctly, this is the way how to sync files from destination account. 但是,如果我理解正确,这就是从目标帐户同步文件的方法。
Is there a way how to do it other way around? 是否有其他方法可以做到? Accessing destination bucket from source account (using source IAM user credentials). 从源帐户访问目标存储区(使用源IAM用户凭据)。
That needs the right IAM and Bucket policy settings. 这需要正确的IAM和存储桶策略设置。
A detailed configuration for cross account access, is discussed here 此处讨论了跨帐户访问的详细配置
Once you have it configured you can perform sync, 配置完成后,您就可以执行同步了,
aws s3 sync s3://sourcebucket s3://destinationbucket --recursive aws s3同步s3:// sourcebucket s3:// destinationbucket --recursive
Hope it helps. 希望能帮助到你。
AWS finally came up with a solution for this: S3 batch operations . AWS最终为此提出了一个解决方案: S3批处理操作 。
S3 Batch Operations is an Amazon S3 data management feature that lets you manage billions of objects at scale with just a few clicks in the Amazon S3 Management Console or a single API request. S3批处理操作是Amazon S3数据管理功能,可让您在Amazon S3管理控制台中单击几下或单个API请求即可大规模管理数十亿个对象 。 With this feature, you can make changes to object metadata and properties, or perform other storage management tasks, such as copying objects between buckets , replacing object tag sets, modifying access controls, and restoring archived objects from S3 Glacier — instead of taking months to develop custom applications to perform these tasks. 使用此功能,您可以更改对象元数据和属性,或执行其他存储管理任务,例如在存储桶之间复制对象 ,替换对象标签集,修改访问控制以及从S3 Glacier恢复已归档的对象,而无需花费数月的时间。开发自定义应用程序以执行这些任务。
It allows you to replicate data at bucket, prefix or object level, from any region to any region, between any storage class (eg S3 <> Glacier) and across AWS accounts ! 它允许您在存储区域(例如S3 <> Glacier)之间以及跨AWS账户 ,在存储桶,前缀或对象级别将数据从任何区域复制到任何区域! No matter if it's thousands, millions or billions of objects. 无论是成千上万,数百万还是数十亿的对象。
This introduction video has an overview of the options (my apologies if I almost sound like a salesperson, I'm just very excited about it as I have a couple of million objects to copy ;-) https://aws.amazon.com/s3/s3batchoperations-videos/ 这段介绍视频概述了各种选项(如果我几乎听起来像个销售人员,我深表歉意,因为我要复制几百万个对象,我对此感到非常兴奋;-) https://aws.amazon.com / s3 / s3batchoperations-videos /
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.