创建设备池返回无repsonse - AWSCLI

时间:2016-03-10 13:05:40

标签: amazon-web-services aws-device-farm

我正在使用AWS CLI创建一个设备池,如下所示

aws devicefarm create-device-pool --project-arn arn:aws:devicefarm:us-west-2:826601527641:project:90cbdcb5-4dab-438e-8ff6-e0680b376619 --name Devicepool_viago_android_0310201614131457612089 --description Devicepool_viago_android_0310201614131457612089 --rules '[{"attribute": "ARN", "operator": "EQUALS", "value":"arn:aws:devicefarm:us-west-2::device:C66D1BC946634884A129A4456EBA0239"}]'

我想创建一个只有一台设备的设备池。

我收到错误如下

A server error (InternalFailure) occurred when calling the CreateDevicePool operation: None

我尝试了其他论坛中提到的解决方案,但我无法成功生成设备池

1 个答案:

答案 0 :(得分:2)

规则值should be stringified。遗憾的是,此信息未在AWS Device Farm文档中正确显示。我们正在努力使其在文档和API响应中更加明显。由于您正在使用AWS CLI,请查看Getting Started with the CLI for Device Farm博文。

这应该有效: aws devicefarm create-device-pool --project-arn "PROJECT_ARN" --name POOL_NAME --rules '[{"attribute":"ARN", "operator":"IN", "value":"\"DEVICE_ARN\""}]'