问题
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