本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
使用 Amazon Snow Device Management 管理设备
Amazon Snow Device Management允许您管理您的 Snow Family 设备和本地设备Amazon远程服务。所有 Snow Family 设备都支持 Snow 设备管理,而且大多数情况下它都预装在新设备上Amazon Web Services 区域在哪里可用 Snow Family 设备。
您可以通过以下方式订购安装了 Snow 设备管理的新设备:
-
从中订购新的 Snow Family 设备时Amazon Web Services Management Console,您可以指定设备到达时 Snow 设备管理处于哪个状态。Snow 设备管理可以安装在以下状态:
-
INSTALLED_ONLY
— Snow 设备管理已安装但尚未激活。 -
INSTALLED_AUTOSTART
— 已安装 Snow 设备管理,设备尝试连接到它Amazon Web Services 区域当它打开电源时。
-
-
当你通过订购新的 Snow Family 设备时Amazon Command Line Interface(Amazon CLI) 或AmazonSDK,你使用
--remote-management
参数来指定INSTALLED_ONLY
要么INSTALLED_AUTOSTART
运行时的状态create-job
命令。如果您没有为此参数指定值,那么 Snow 设备管理默认值为INSTALLED_ONLY
对于支持的设备。注意 如果没有预装 Snow 设备管理功能工件,则无法订购新的 Snow Family 设备。这些区域有:
NOT_INSTALLED
状态的存在仅用于识别不支持该功能或启动前已在现场的设备。如果不希望使用 Snow 设备管理,请将其设置为 INSTALLED_ONLY 状态。无法将 Snow 设备管理添加到已在现场部署的 Snow Family 设备中。要使用 Snow 设备管理,您必须订购预装该功能的新设备。
以下示例显示的语法:--remote-management
参数,除了可能包含的典型参数之外的其他参数create-job
命令。有关更多信息,请参阅 。任务管理 API 参考在”AmazonSnow Family API 参考” 指南。
命令
aws snowball create-job \ --job-type
IMPORT
\ --remote-managementINSTALLED_AUTOSTART
--device-configuration'{"SnowconeDeviceConfiguration": {"WirelessConnection": {"IsWifiEnabled": false} } }'
\ --resources'{"S3Resources":[{"BucketArn":"arn:aws:s3:::bucket-name"}]}'
\ --description"Description here"
\ --address-idADID00000000-0000-0000-0000-000000000000
\ --kms-key-arnarn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
\ --role-arnarn:aws:iam::000000000000:role/SnowconeImportGamma
\ --snowball-capacity-preferenceT8
\ --shipping-optionNEXT_DAY
\ --snowball-typeSNC1_HDD
\ --regionus-west-2
\
远程管理设备
如果你指定INSTALLED_AUTOSTART
对于作业订单期间的 Snow 设备管理,该功能可以在 Snow Family 设备到达时立即使用,并首次打开电源。
如果你指定INSTALLED_ONLY
订购设备时,必须将功能状态更改为INSTALLED_AUTOSTART
在设备可以回调它之前Amazon Web Services 区域以启用远程管理。收到并解锁设备后,您可以随时启用 Snow 设备管理。
启用 Snow 设备管理
按照此过程使用 Snowball Edge CLI 启用 Snow 设备管理。
此过程需要 Snowball Edge 客户端。在继续之前,请确保您已安装了最新的 Snowball Edge 客户端。有关更多信息,请参阅 。下载并安装 Snowball 客户端.
在设备上启用 Snow 设备管理
-
从下载作业的清单文件Amazon,使用以下命令:Replace
占位符值
用您的信息编写。命令
aws snowball get-job-manifest --job-id
JID970A5018-F8KE-4D06-9F7B-335C1C7221E4
输出
{ "ManifestURI": "https://awsie-frosty-manifests-prod.s3.us-east-1.amazonaws.com/JID970A5018-F8KE-4D06-9F7B-335C1C7221E4_manifest.bin" }
-
从下载作业的解锁代码Amazon,使用以下命令:Replace
占位符值
用您的信息编写。命令
aws snowball get-job-unlock-code --job-id
JID970A5018-F8KE-4D06-9F7B-335C1C7221E4
输出
{ "UnlockCode": "7c0e1-bab84-f7675-0a2b6-f8k33" }
-
使用兼容的电源适配器为设备供电并打开。然后使用以太网电缆或 Wi-Fi 连接将设备连接到您的网络。有关更多信息,请参阅 。Amazon Snowcone电源和附件.
-
记下设备显示屏上显示的本地 IP 地址。在接下来的步骤中,您需要用到此 IP 地址。此 IP 地址可以通过 DHCP 自动获取,要么是静态配置。
-
要解锁设备,请使用以下命令:Replace
占位符值
用您的信息编写。对于--endpoint
参数中,指定您之前记录的设备本地 IP 地址。命令
snowballEdge unlock-device --manifest-file
JID1717d8cc-2dc9-4e68-aa46-63a3ad7927d2_manifest.bin
--unlock-code7c0e1-bab84-f7675-0a2b6-f8k33
--endpoint https://10.186.0.56
:9091输出
Your Snowball Edge device is unlocking. You may determine the unlock state of your device using the describe-device command. Your Snowball Edge device will be available for use when it is in the UNLOCKED state.
-
(可选)要描述设备的功能,请使用以下命令。Replace
占位符值
用您的信息编写。对于--endpoint
参数中,指定您之前记录的设备本地 IP 地址。命令
snowballEdge describe-features --manifest-file
JID1717d8cc-2dc9-4e68-aa46-63a3ad7927d2_manifest.bin
--unlock-code7c0e1-bab84-f7675-0a2b6-f8k33
--endpoint https://10.186.0.56
:9091输出
{ "RemoteManagementState" : "INSTALLED_ONLY" }
-
要启用 Snow 设备管理,请使用以下命令。Replace
占位符值
用您的信息编写。对于--endpoint
参数中,指定您之前记录的设备本地 IP 地址。命令
snowballEdge set-features --remote-management-state INSTALLED_AUTOSTART --manifest-file
JID1717d8cc-2dc9-4e68-aa46-63a3ad7927d2_manifest.bin
--unlock-code7c0e1-bab84-f7675-0a2b6-f8k33
--endpoint https://10.186.0.56
:9091输出
{ "RemoteManagementState" : "INSTALLED_AUTOSTART" }
-
在存储库的Amazon Web Services 账户从中订购设备,请创建一个Amazon Identity and Access Management(IAM) 角色,并将以下策略添加到该角色。然后,将角色分配给将登录以使用 Snow 设备管理远程管理设备的 IAM 用户。有关更多信息,请参阅 。创建 IAM 角色和在您的Amazon Web Services 账户.
策略
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ 'snow-device-management:ListDevices', 'snow-device-management:DescribeDevice', 'snow-device-management:DescribeDeviceEc2Instances', 'snow-device-management:ListDeviceResources', 'snow-device-management:CreateTask', 'snow-device-management:ListTasks', 'snow-device-management:DescribeTask', 'snow-device-management:CancelTask', 'snow-device-management:DescribeExecution', 'snow-device-management:ListExecutions', 'snow-device-management:ListTagsForResource', 'snow-device-management:TagResource', 'snow-device-management:UntagResource' ], "Resource": "*" } ] }