简体   繁体   English

在不同 AWS 账户的服务器之间共享文件

[英]Share files between servers in different AWS accounts

I need to move several GB of data from one AWS account to another.我需要将数 GB 的数据从一个 AWS 账户移动到另一个账户。 The data moved will be loaded in an existing application.移动的数据将加载到现有应用程序中。 The storage shared between the two accounts will be temporary.两个帐户之间共享的存储空间将是临时的。

I need a simple solution and not necessarily the "best".我需要一个简单的解决方案,不一定是“最好的”。 I was thinking to use an S3 bucket, but then I thought that it would complicate the implementation of the migration because I would need to read from an S3 bucket instead of a simple file system.我本来想使用 S3 存储桶,但后来我认为这会使迁移的实施变得复杂,因为我需要从 S3 存储桶而不是简单的文件系统中读取数据。

What is an efficient and simple way to move many GB of data from a file system in one AWS account to a file system in a different AWS account?将许多 GB 数据从一个 AWS 账户中的文件系统移动到不同 AWS 账户中的文件系统的有效且简单的方法是什么?

You have some options, everything depends of the size and the locations of your data.您有一些选择,一切都取决于数据的大小和位置。

A specific service for this kind of situation is the AWS DataSync service, that you can communicate the accounts using VPC peering, but if you cannot peer VPCs together, perhaps due to internal security policies or regulatory compliance, you can still use the inte.net to securely transfer the data.针对这种情况的特定服务是 AWS DataSync 服务,您可以使用 VPC 对等互连来通信帐户,但如果您不能将 VPC 对等互连在一起,可能是由于内部安全策略或法规遵从性,您仍然可以使用 inte.net以安全地传输数据。

The DataSync service supports the following Locations (sources and destinations): DataSync 服务支持以下位置(源和目标):

  • Network File System (NFS)网络文件系统 (NFS)
  • Server Message Block (SMB)服务器消息块 (SMB)
  • Self-managed object storage自管object存储
  • Amazon EFS亚马逊电子文件系统
  • Amazon FSx for Windows File Server用于 Windows 文件服务器的 Amazon FSx
  • Amazon S3亚马逊 S3

Your architecture with DataSync can be like the following one:您的 DataSync 架构可能如下所示:

在此处输入图像描述

More information about using Datasync can be found here Transferring data between AWS accounts using AWS DataSync有关使用 Datasync 的更多信息,请参见此处使用 AWS DataSync 在 AWS 账户之间传输数据

About the Pricing the AWS DataSync can be costly depending your locations, AWS charges the destination account for the use of AWS DataSync, since this is where you use the DataSync endpoint.关于定价 AWS DataSync 可能会很昂贵,具体取决于您所在的位置,AWS 会向目标账户收取使用 AWS DataSync 的费用,因为这是您使用 DataSync 端点的地方。 Refer to the DataSync pricing page for more information.有关详细信息,请参阅DataSync 定价页面。

Also, we have the following options that can be an option for you:此外,我们还有以下可供您选择的选项:

Make use of Snapshot here.在这里使用快照 Share that with the another account > Create the file system their与另一个帐户共享>创建他们的文件系统

This would be faster to implement also.这也会更快地实施。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS ECS Fargate - 为什么 /etc/hosts 在 2 个 aws 账户之间不同? - AWS ECS Fargate - Why /etc/hosts is different between 2 aws accounts? 不同 aws 账户的一个角色 - One role for different aws accounts 来自 2 个不同 AWS 账户的交叉堆栈引用 - Cross stack reference from 2 different AWS accounts 在同一个区域创建的两个 AWS 账户是否共享同一个 VPC? - Do two AWS accounts created in the same region share the same VPC? 如何使用 boto3 在 2 个不同帐户的 S3 存储桶之间复制文件 - How to copy files between S3 buckets in 2 different accounts using boto3 验证来自 AWS Terraform 中 2 个不同账户的证书 - Validate the certificates from 2 different accounts in AWS Terraform Athena 查询不同账户中的表 - Athena queries between tables in different accounts 在不同 AWS CDK 堆栈之间共享资源(如 VPC、安全规则)的最佳和推荐方式 - Best & Recommended way to share resources like VPC, Security Rules between different AWS CDK Stack 在网站的多个 AWS 账户(在不同的组织中)之间轻松切换 - Easily switch between multiple AWS accounts (in separate organizations) in the website Terraform与CDK共享AWS资源 - Share AWS resources between Terraform and CDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM