

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

# 在 Snowball Edge 裝置上使用 AWS CLI 和 API 操作
<a name="using-ec2-cli-specify-region"></a>

使用 AWS Command Line Interface (AWS CLI) 或 API 操作在 Snowball Edge 上發出 IAM、Amazon S3 和 Amazon EC2 命令時，您必須將 指定`region`為「」`snow`。 您可以使用 `AWS configure`或在命令本身內執行此操作，如下列範例所示。

```
aws configure --profile ProfileName
AWS Access Key ID [None]: defgh
AWS Secret Access Key [None]: 1234567
Default region name [None]: snow
Default output format [None]: json
```

或

```
aws s3 ls --endpoint http://192.0.2.0:8080 --region snow --profile ProfileName
```