Download infra/cloud-controller/role-policy.example.json from windows2t2/cad-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/windows2t2/cad-bench/resolve/main/infra/cloud-controller/role-policy.example.json
- Command line
-
hf download hf://windows2t2/cad-bench/infra/cloud-controller/role-policy.example.json
-
curl -L -o role-policy.example.json https://huggingface.co/windows2t2/cad-bench/resolve/main/infra/cloud-controller/role-policy.example.json
1.44 kB
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "InspectAndManageBenchmarkWorkers", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "ec2:Describe*", | |
| "ec2:RunInstances", | |
| "ec2:CreateTags", | |
| "ec2:StartInstances", | |
| "ec2:StopInstances", | |
| "ec2:TerminateInstances" | |
| ], | |
| "Resource": "*" | |
| }, | |
| { | |
| "Sid": "ControlWorkersThroughSSM", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "ssm:CancelCommand", | |
| "ssm:DescribeInstanceInformation", | |
| "ssm:GetCommandInvocation", | |
| "ssm:ListCommandInvocations", | |
| "ssm:ListCommands", | |
| "ssm:ResumeSession", | |
| "ssm:SendCommand", | |
| "ssm:StartSession", | |
| "ssm:TerminateSession" | |
| ], | |
| "Resource": "*" | |
| }, | |
| { | |
| "Sid": "BenchmarkObjectStorage", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "s3:GetObject", | |
| "s3:PutObject", | |
| "s3:ListBucket" | |
| ], | |
| "Resource": [ | |
| "arn:aws:s3:::REPLACE_BUCKET", | |
| "arn:aws:s3:::REPLACE_BUCKET/*" | |
| ] | |
| }, | |
| { | |
| "Sid": "ReadCapacity", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "servicequotas:GetServiceQuota", | |
| "servicequotas:ListServiceQuotas" | |
| ], | |
| "Resource": "*" | |
| }, | |
| { | |
| "Sid": "PassWorkerRole", | |
| "Effect": "Allow", | |
| "Action": "iam:PassRole", | |
| "Resource": "arn:aws:iam::REPLACE_ACCOUNT_ID:role/REPLACE_WORKER_ROLE" | |
| } | |
| ] | |
| } | |