

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 將資料從 EC2-compatible運算執行個體傳輸到相同 Snowball Edge 上的 S3 儲存貯體
<a name="data-transfer-ec2-s3-edge"></a>

您可以在相同的 Snowball Edge 裝置上，在運算執行個體和 Amazon S3 儲存貯體之間傳輸資料。您可以使用支援的 AWS CLI 命令和適當的端點來執行此操作。例如，假設您想要將資料從我`sbe1.xlarge`執行個體中的目錄移至相同裝置上的 Amazon S3 儲存貯`amzn-s3-demo-bucket`體。假設您在 Snowball Edge 端點 上使用 Amazon S3 相容儲存`https://S3-object-API-endpoint:443`。請使用下列程序。

**在相同 Snowball Edge 上的運算執行個體與儲存貯體之間傳輸資料**

1. 使用 SSH 連線到執行個體。

1. 下載並安裝 AWS CLI。如果您的執行個體尚無 AWS CLI，請下載並安裝它。如需詳細資訊，請參閱[安裝 AWS Command Line Interface](https://docs.aws.amazon.com/cli/latest/userguide/installing.html)。

1. 將運算執行個體 AWS 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
   ```