标签: aws-datasync

AWS 数据同步与存储网关用例

AWS 数据同步和存储网关之间的实际用例差异是什么,因为两者都允许在本地数据中心和 AWS 之间传输数据。

amazon-ec2 amazon-web-services aws-storage-gateway aws-datasync

15
推荐指数
1
解决办法
7138
查看次数

AWS DataSync 与 AWS Transfer 系列

我从官方网站上阅读了文档。但它并没有给我一个清晰的画面。

既然 AWS DataSync 也可以达到相同的结果,为什么需要使用 AWS Transfer Family?

我注意到协议差异,但不太确定数据迁移用例。

为什么我们要选择其中之一而不是另一个?

amazon-web-services aws-datasync aws-transfer-family

12
推荐指数
1
解决办法
9329
查看次数

AWS Datasync S3 -> S3 跨帐户,对目标角色/帐户感到困惑

我想使用 Datasync 将数据从一个账户中的单个 S3 存储桶复制到另一个账户中的单个 S3 存储桶。我正在关注这个官方 AWS Datasync 博客:https://aws.amazon.com/blogs/storage/how-to-use-aws-datasync-to-migrate-data- Between -amazon-s3-buckets/第二部分“跨帐户复制对象”。

我已经设置了源存储桶和目标存储桶,并且

  • 完成了“创建新的 IAM 角色并为源 S3 存储桶位置附加新的 IAM 策略”的初始步骤,并且
  • “将以下信任关系添加到 IAM 角色”(您可以通过搜索引号中的这些字符串来了解我在博客中的意思)但是
  • 我现在对使用哪个帐户来“打开源 S3 存储桶策略并应用以下策略来授予 IAM 角色访问对象的权限”感到困惑
  • 用于运行 AWS CLI 命令“aws sts get-caller-identity”的账户以及
  • 然后是“aws datasync create-location-s3”命令。我是在源帐户还是目标帐户上执行这些操作?

该博客对这些具体步骤有点混乱和不清楚,我在任何地方都找不到更简单的指南。

amazon-s3 amazon-web-services aws-datasync

7
推荐指数
1
解决办法
1万
查看次数

我如何访问 golang 中的错误单个属性

!! 我是新来的!

我正在使用 datasync API 来启动任务执行,没有任何问题。我正在努力处理返回的错误结构,我想访问各个元素,但我似乎无法做到这一点。

例如,在以下错误中我希望能够访问Message_的内容

2022/03/19 09:33:48 Sync called : 
InvalidRequestException: Unable to queue the task execution for task task-xxxxxxxxxxxx. The task already has another task execution exec-030b4a31dc2e33641 currently running or queued with identical Include and Exclude filter patterns. Please provide unique Include and Exclude filter patterns for the new task execution and try again.
{
  RespMetadata: {
    StatusCode: 400,
    RequestID: "xxxxxxxxxxxxxxxxxxxxx"
  },
  ErrorCode: "DedupeFailed",
  Message_: "Unable to queue the task execution for task task-xxxxxxxxxx. The task …
Run Code Online (Sandbox Code Playgroud)

error-handling go amazon-web-services aws-datasync

0
推荐指数
1
解决办法
631
查看次数