2

When I try to start a DeviceFarm run via CLI or API with an IAM user, I'm always getting the following error:

An error occurred (AccessDeniedException) when calling the ScheduleRun operation: User: <user-arn> is not authorized to perform: devicefarm:ScheduleRun on resource: <upload-arn>

It happens regardless of user permissions, even on a user who has the AdministratorAccess policy attached. Policy json:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "*",
            "Resource": "*"
        }
    ]
}

The command I'm trying to run:

aws devicefarm schedule-run --region=us-west-2 --project-arn=<project-arn> --test='type=APPIUM_PYTHON,testPackageArn=<package-arn>,testSpecArn=<spec-arn>'

However I can still start the run manually via the web AWS console.

0 Answers0