简体   繁体   English

将文件从s3存储桶复制到另一个AWS账户

[英]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.

相关问题 将文件从一个AWS账户中的S3存储桶复制到另一个AWS账户 - Copy files from an S3 bucket in one AWS account to another AWS account AWS-s3:如何根据文件名将文件从 s3 存储桶复制到另一个 s3 存储桶 - AWS-s3 : How to copy files from s3 bucket to another s3 bucket based on filename AWS S3 - 将一个账户拥有的文件复制到另一个账户的存储桶所有者中 - AWS S3 - Copy files owned by one account in a bucket owner by another account 将数据从一个AWS账户中的S3存储桶复制到另一个AWS账户中的S3存储桶 - Copy data from S3 bucket in one AWS account to S3 bucket in other AWS account 仅在存储桶存在时才从AWS S3存储桶复制文件 - Copy files from AWS S3 Bucket only if the bucket exists 从另一个 AWS 账户复制 S3 存储桶的最快、最具成本效益的方法 - Fastest and most cost efficient way to copy over an S3 bucket from another AWS account Aws 使用 lambda python 将数据从一个 S3 存储桶复制到同一帐户上的另一个存储桶 - Aws copy data from one S3 bucket to another on same account using lambda python 无法从另一个账户中的 S3 存储桶复制 - Can't copy from from an S3 bucket in another account Python 中的 AWS Lambda 将新文件复制到另一个 s3 存储桶 - AWS Lambda in Python to copy new files to another s3 bucket 如何快速将AWS S3存储桶中的数百万个文件从一个帐户迁移到另一个帐户 - How to migrate millions of files in aws s3 bucket from one account to another really fast
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM