

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 将数据从 EC2兼容的计算实例传输到同一 Snowball Edge 上的 S3 存储桶
<a name="data-transfer-ec2-s3-edge"></a>

您可以在同一个 Snowball Edge 设备上的计算实例与 Amazon S3 存储桶之间传输数据。您可以通过使用支持的 Amazon CLI 命令和相应的端点来执行此操作。例如，假定您希望在同一台设备上将我的 `sbe1.xlarge` 实例的某个目录中的数据移到 Amazon S3 存储桶 。假设你在 Snowball Edge 终端节点上使用与 Amazon S3 兼容的存储。`https://S3-object-API-endpoint:443`您使用以下过程。

**在相同 Snowball Edge 上的计算实例与存储桶之间传输数据**

1. 使用 SSH 连接到计算实例。

1. 下载并安装 Amazon CLI。如果您的实例还没有此 Amazon CLI，请下载并安装它。有关更多信息，请参阅[安装 Amazon Command Line Interface](https://docs.amazonaws.cn/cli/latest/userguide/installing.html)。

1.  Amazon CLI 在您的计算实例上配置，使其与 Snowball Edge 上的 Amazon S3 终端节点配合使用。有关更多信息，请参阅 [在 Snowball Edge 上获取和使用本地 Amazon S3 证书](using-adapter.md#adapter-credentials)。

1. 在 Snowball Edge 命令中使用支持的 Amazon S3 兼容存储来传输数据。例如：

   ```
   aws s3 cp ~/june2018/results s3://amzn-s3-demo-bucket/june2018/results --recursive --endpoint https://S3-object-API-endpoint:443
   ```