Create Device Pool returning None repsonse - AWSCLI

折月煮酒 提交于 2019-12-05 03:58:39

问题


I am creating a devicepool using AWS CLI as below

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"}]'

I want to create a device pool with only one device.

I am getting error as below

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

I tried the solutions mentioned in other forums but I am not able to succeed in generating a device pool


回答1:


Rule values should be stringified. Unfortunately, this information isn't properly surfaced in the AWS Device Farm documentation. We are working on making this more visible in the documentation and the API response. Since you're using the AWS CLI, have a look at the Getting Started with the CLI for Device Farm blog post.

This should work: aws devicefarm create-device-pool --project-arn "PROJECT_ARN" --name POOL_NAME --rules '[{"attribute":"ARN", "operator":"IN", "value":"\"DEVICE_ARN\""}]'



来源:https://stackoverflow.com/questions/35917390/create-device-pool-returning-none-repsonse-awscli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!